[pypy-svn] r76107 - pypy/branch/fast-forward/pypy/module/struct/test

benjamin at codespeak.net benjamin at codespeak.net
Sun Jul 11 18:31:16 CEST 2010


Author: benjamin
Date: Sun Jul 11 18:31:15 2010
New Revision: 76107

Modified:
   pypy/branch/fast-forward/pypy/module/struct/test/test_struct.py
Log:
remove test that is no longer applicable

Modified: pypy/branch/fast-forward/pypy/module/struct/test/test_struct.py
==============================================================================
--- pypy/branch/fast-forward/pypy/module/struct/test/test_struct.py	(original)
+++ pypy/branch/fast-forward/pypy/module/struct/test/test_struct.py	Sun Jul 11 18:31:15 2010
@@ -363,18 +363,6 @@
         raises(someerror, calcsize, "%dci" % (sys.maxint,))
 
 
-    def test_broken_input(self):
-        """
-        For compatibility: check that we also accept inputs that are
-        wrongly accepted by CPython 2.4.
-        """
-        pack = self.struct.pack
-        assert pack("!b", 0xa0) == '\xa0'
-        assert pack("!B", -1.1) == '\xff'
-        assert pack("!h", 0xa000) == '\xa0\x00'
-        assert pack("!H", -2.2) == '\xff\xfe'
-
-
     def test_unicode(self):
         """
         A PyPy extension: accepts the 'u' format character in native mode,



More information about the Pypy-commit mailing list