Tighten up some warning filters, and break some dependencies on the

order in which the tests are normally run.
This commit is contained in:
Tim Peters 2002-04-16 01:27:44 +00:00
parent 50ac30ee01
commit d392506c43
9 changed files with 34 additions and 16 deletions

View file

@ -33,7 +33,7 @@ class TemporaryFileTests(unittest.TestCase):
if not hasattr(os, "tempnam"):
return
warnings.filterwarnings("ignore", "tempnam", RuntimeWarning,
"test_os")
r"test_os$")
self.check_tempfile(os.tempnam())
name = os.tempnam(TESTFN)
@ -57,7 +57,7 @@ class TemporaryFileTests(unittest.TestCase):
if not hasattr(os, "tmpnam"):
return
warnings.filterwarnings("ignore", "tmpnam", RuntimeWarning,
"test_os")
r"test_os$")
self.check_tempfile(os.tmpnam())
# Test attributes on return values from os.*stat* family.