summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2010-03-05 14:44:08 (GMT)
committerMark Dickinson <dickinsm@gmail.com>2010-03-05 14:44:08 (GMT)
commit79d38ac7060795659b141040a6c6def8113a9531 (patch)
treeb775ab5887d4293a235912fd0a4269a0341982e7
parent65d7643cb492a7cda7b1d0153e6c610c30bd3b01 (diff)
downloadcpython-79d38ac7060795659b141040a6c6def8113a9531.zip
cpython-79d38ac7060795659b141040a6c6def8113a9531.tar.gz
cpython-79d38ac7060795659b141040a6c6def8113a9531.tar.bz2
Remove unused imports & clean up sys imports in test_struct.
-rw-r--r--Lib/test/test_struct.py8
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,