[pypy-commit] pypy py3k: kill long and unicode

antocuni noreply at buildbot.pypy.org
Wed Mar 21 12:27:39 CET 2012


Author: Antonio Cuni <anto.cuni at gmail.com>
Branch: py3k
Changeset: r53862:6ba6cbf1a740
Date: 2012-03-21 12:16 +0100
http://bitbucket.org/pypy/pypy/changeset/6ba6cbf1a740/

Log:	kill long and unicode

diff --git a/pypy/objspace/std/test/test_obj.py b/pypy/objspace/std/test/test_obj.py
--- a/pypy/objspace/std/test/test_obj.py
+++ b/pypy/objspace/std/test/test_obj.py
@@ -137,10 +137,10 @@
         assert self.unwrap_wrap_bytes(s) is s
 
     def test_is_on_subclasses(self):
-        for typ in [int, long, float, complex, str, unicode]:
+        for typ in [int, float, complex, str]:
             class mytyp(typ):
                 pass
-            if not self.cpython_apptest and typ not in (str, unicode):
+            if not self.cpython_apptest and typ is not str:
                 assert typ(42) is typ(42)
             assert mytyp(42) is not mytyp(42)
             assert mytyp(42) is not typ(42)


More information about the pypy-commit mailing list