Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 28f2f88 commit c293704Copy full SHA for c293704
1 file changed
Lib/test/test_bz2.py
@@ -1,11 +1,11 @@
1
#!/usr/bin/python
2
from test import test_support
3
+from test.test_support import TESTFN
4
5
import unittest
6
from cStringIO import StringIO
7
import os
8
import popen2
-import tempfile
9
import sys
10
11
import bz2
@@ -40,7 +40,7 @@ class BZ2FileTest(BaseTest):
40
"Test MCRYPT type miscelaneous methods."
41
42
def setUp(self):
43
- self.filename = tempfile.mktemp("bz2")
+ self.filename = TESTFN
44
45
def tearDown(self):
46
if os.path.isfile(self.filename):
0 commit comments