Commits

Armin Rigo committed 04b94d2

Fix this test to load on CPython 2.5 too.

Comments (0)

Files changed (1)

pypy/objspace/std/test/test_bytes.py

             assert set(type(x) for x in result) == set([bytearray])
 
         b = bytearray('mississippi')
-        check(b.split('i'), [b'm', b'ss', b'ss', b'pp', b''])
-        check(b.rsplit('i'), [b'm', b'ss', b'ss', b'pp', b''])
-        check(b.rsplit('i', 2), [b'mississ', b'pp', b''])
+        check(b.split('i'), eval("[b'm', b'ss', b'ss', b'pp', b'']"))
+        check(b.rsplit('i'), eval("[b'm', b'ss', b'ss', b'pp', b'']"))
+        check(b.rsplit('i', 2), eval("[b'mississ', b'pp', b'']"))
 
-        check(b.partition(b'ss'), (b'mi', b'ss', b'issippi'))
-        check(b.rpartition(b'ss'), (b'missi', b'ss', b'ippi'))
+        check(b.partition(eval("b'ss'")), eval("(b'mi', b'ss', b'issippi')"))
+        check(b.rpartition(eval("b'ss'")), eval("(b'missi', b'ss', b'ippi')"))
         
     def test_append(self):
         b = bytearray('abc')