diff options
author | Mark Dickinson <dickinsm@gmail.com> | 2010-03-05 14:45:49 (GMT) |
---|---|---|
committer | Mark Dickinson <dickinsm@gmail.com> | 2010-03-05 14:45:49 (GMT) |
commit | 9482032761244da95a14f917b92ce068139b0779 (patch) | |
tree | 143e05e55b2de36d00ce0b66acb8aa5b39e5f7a2 /Lib/test/test_struct.py | |
parent | 3e56dbe0ed438ccbd168feb030e2e06203f446ed (diff) | |
download | cpython-9482032761244da95a14f917b92ce068139b0779.zip cpython-9482032761244da95a14f917b92ce068139b0779.tar.gz cpython-9482032761244da95a14f917b92ce068139b0779.tar.bz2 |
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.
........
Diffstat (limited to 'Lib/test/test_struct.py')
-rw-r--r-- | Lib/test/test_struct.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/Lib/test/test_struct.py b/Lib/test/test_struct.py index 39f6daf..684dc6c 100644 --- a/Lib/test/test_struct.py +++ b/Lib/test/test_struct.py @@ -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 @@ class StructTest(unittest.TestCase): 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, |