summaryrefslogtreecommitdiff
path: root/Lib/test/test_os.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_os.py')
-rw-r--r--Lib/test/test_os.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py
index 6155f0a11e..395402be66 100644
--- a/Lib/test/test_os.py
+++ b/Lib/test/test_os.py
@@ -154,7 +154,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,
@@ -215,8 +214,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):