Kaydet (Commit) 79d38ac7 authored tarafından Mark Dickinson's avatar Mark Dickinson

Remove unused imports & clean up sys imports in test_struct.

üst 65d7643c
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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment