Mercurial > cpython-lru_cache-weakref
diff Lib/test/test_struct.py @ 59367:ced5f1f414b0 3.1
Merged revisions 78692 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r78692 | mark.dickinson | 2010-03-05 14:44:08 +0000 (Fri, 05 Mar 2010) | 1 line
Remove unused imports & clean up sys imports in test_struct.
........
| author | Mark Dickinson <dickinsm@gmail.com> |
|---|---|
| date | Fri, 05 Mar 2010 14:45:49 +0000 |
| parents | 0bb232078b8c |
| children | 50c239174976 bd5121bf6996 |
line wrap: on
line diff
--- a/Lib/test/test_struct.py Fri Mar 05 03:30:16 2010 +0000 +++ b/Lib/test/test_struct.py Fri Mar 05 14:45:49 2010 +0000 @@ -1,15 +1,12 @@ import array import unittest import struct -import warnings +import sys -from functools import wraps -from test.support import TestFailed, verbose, run_unittest +from test.support import run_unittest -import sys ISBIGENDIAN = sys.byteorder == "big" IS32BIT = sys.maxsize == 0x7fffffff -del sys def string_reverse(s): return s[::-1] @@ -377,7 +374,6 @@ def test_1229380(self): # SF bug 1229380. No struct.pack exception for some out of # range integers - import sys for endian in ('', '>', '<'): for fmt in ('B', 'H', 'I', 'L'): self.assertRaises((struct.error, OverflowError), struct.pack,
