mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Tighten up some warning filters, and break some dependencies on the
order in which the tests are normally run.
This commit is contained in:
parent
50ac30ee01
commit
d392506c43
9 changed files with 34 additions and 16 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue