diff Lib/test/test_struct.py @ 38515:bb0d2b955439 legacy-trunk

Change wrapping terminology to overflow masking
author Bob Ippolito <bob@redivi.com>
date Tue, 30 May 2006 17:37:54 +0000
parents 1731fbdf029d
children f0f291fa9b46
line wrap: on
line diff
--- a/Lib/test/test_struct.py	Tue May 30 17:11:48 2006 +0000
+++ b/Lib/test/test_struct.py	Tue May 30 17:37:54 2006 +0000
@@ -15,10 +15,10 @@
     import _struct
 except ImportError:
     PY_STRUCT_RANGE_CHECKING = 0
-    PY_STRUCT_WRAPPING = 1
+    PY_STRUCT_OVERFLOW_MASKING = 1
 else:
     PY_STRUCT_RANGE_CHECKING = getattr(_struct, '_PY_STRUCT_RANGE_CHECKING', 0)
-    PY_STRUCT_WRAPPING = getattr(_struct, '_PY_STRUCT_WRAPPING', 0)
+    PY_STRUCT_OVERFLOW_MASKING = getattr(_struct, '_PY_STRUCT_OVERFLOW_MASKING', 0)
 
 def string_reverse(s):
     chars = list(s)
@@ -62,7 +62,7 @@
         except (struct.error, TypeError):
             pass
         except DeprecationWarning:
-            if not PY_STRUCT_WRAPPING:
+            if not PY_STRUCT_OVERFLOW_MASKING:
                 raise TestFailed, "%s%s expected to raise struct.error" % (
                     func.__name__, args)
         else: