diff options
author | Tim Peters <tim.peters@gmail.com> | 2002-11-14 16:23:29 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2002-11-14 16:23:29 (GMT) |
commit | c293704e93adfe45961bcf8456a2c244970c443e (patch) | |
tree | 09edd32e397db3613252166cff76e8c3fd7070e7 /Lib/test/test_bz2.py | |
parent | 28f2f88c31ea165f6ac47924d1f795f6c9d09fa3 (diff) | |
download | cpython-c293704e93adfe45961bcf8456a2c244970c443e.zip cpython-c293704e93adfe45961bcf8456a2c244970c443e.tar.gz cpython-c293704e93adfe45961bcf8456a2c244970c443e.tar.bz2 |
This uses only one temp file at a time, so use test_support.TESTFN as
the name instead of enduring nanny "security warnings" from
tempfile.mktemp().
Diffstat (limited to 'Lib/test/test_bz2.py')
-rw-r--r-- | Lib/test/test_bz2.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_bz2.py b/Lib/test/test_bz2.py index 072a89e..104d7e0 100644 --- a/Lib/test/test_bz2.py +++ b/Lib/test/test_bz2.py @@ -1,11 +1,11 @@ #!/usr/bin/python from test import test_support +from test.test_support import TESTFN import unittest from cStringIO import StringIO import os import popen2 -import tempfile import sys import bz2 @@ -40,7 +40,7 @@ class BZ2FileTest(BaseTest): "Test MCRYPT type miscelaneous methods." def setUp(self): - self.filename = tempfile.mktemp("bz2") + self.filename = TESTFN def tearDown(self): if os.path.isfile(self.filename): |