mirror of
https://github.com/python/cpython.git
synced 2025-07-28 21:55:21 +00:00
Remove unused imports in test modules.
This commit is contained in:
parent
dc3694bee0
commit
a4f46e1292
74 changed files with 40 additions and 135 deletions
|
@ -134,7 +134,6 @@ class TemporaryFileTests(unittest.TestCase):
|
|||
self.assertTrue(s == "foobar")
|
||||
|
||||
def test_tmpnam(self):
|
||||
import sys
|
||||
if not hasattr(os, "tmpnam"):
|
||||
return
|
||||
warnings.filterwarnings("ignore", "tmpnam", RuntimeWarning,
|
||||
|
@ -185,8 +184,6 @@ class StatAttributeTests(unittest.TestCase):
|
|||
self.assertEquals(result[stat.ST_SIZE], 3)
|
||||
self.assertEquals(result.st_size, 3)
|
||||
|
||||
import sys
|
||||
|
||||
# Make sure all the attributes are there
|
||||
members = dir(result)
|
||||
for name in dir(stat):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue