[issue7703] Replace buffer()-->memoryview() in Lib/ctypes/test/

Antoine Pitrou report at bugs.python.org
Sat Jan 16 11:46:22 CET 2010


Antoine Pitrou <pitrou at free.fr> added the comment:

I don't think the bytes -> bytearray changes are useful, e.g.:

-        fillers = ""
+        fillers = bytearray()

As for:

+            try:
+                f(empty)
+            except SystemError, err:
+                self.fail("{}({!r}) raises SystemError: {}".format(func, empty, err))
+            except Exception, err:
+                self.fail("{}({!r}) raises {!r}".format(func, empty, err))

The "except SystemError" is pointless, since "except Exception" will catch SystemError anyway.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7703>
_______________________________________


More information about the Python-bugs-list mailing list