mirror of
https://github.com/python/cpython.git
synced 2025-10-17 12:18:23 +00:00
Merged revisions 78093 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r78093 | georg.brandl | 2010-02-07 18:03:15 +0100 (So, 07 Feb 2010) | 1 line Remove unused imports in test modules. ........
This commit is contained in:
parent
7a4f7d92f0
commit
1b37e8728c
55 changed files with 25 additions and 98 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue