[pypy-commit] pypy py3k: minor py3 compat fixes

pjenvey noreply at buildbot.pypy.org
Tue Mar 20 02:24:30 CET 2012


Author: Philip Jenvey <pjenvey at underboss.org>
Branch: py3k
Changeset: r53827:2fbeb9105503
Date: 2012-03-19 18:22 -0700
http://bitbucket.org/pypy/pypy/changeset/2fbeb9105503/

Log:	minor py3 compat fixes

diff --git a/pypy/module/micronumpy/test/test_dtypes.py b/pypy/module/micronumpy/test/test_dtypes.py
--- a/pypy/module/micronumpy/test/test_dtypes.py
+++ b/pypy/module/micronumpy/test/test_dtypes.py
@@ -32,7 +32,6 @@
 
         assert dtype(bool).num == 0
         assert dtype(int).num == 7
-        assert dtype(int).num == 9
         assert dtype(float).num == 12
 
     def test_array_dtype_attr(self):
@@ -481,8 +480,8 @@
     def test_str_unicode(self):
         from _numpypy import str_, unicode_, character, flexible, generic
         
-        assert str_.mro() == [str_, str, str, character, flexible, generic, object]
-        assert unicode_.mro() == [unicode_, str, str, character, flexible, generic, object]
+        assert str_.mro() == [str_, str, character, flexible, generic, object]
+        assert unicode_.mro() == [unicode_, str, character, flexible, generic, object]
 
     def test_str_dtype(self):
         from _numpypy import dtype, str_


More information about the pypy-commit mailing list