Remove unused imports in test modules.

This commit is contained in:
Georg Brandl 2010-02-07 17:03:15 +00:00
parent dc3694bee0
commit a4f46e1292
74 changed files with 40 additions and 135 deletions

View file

@ -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):