Author: Philip Jenvey <pjen...@underboss.org>
Branch: py3k
Changeset: r68999:a5ea51eea081
Date: 2014-01-29 11:37 -0800
http://bitbucket.org/pypy/pypy/changeset/a5ea51eea081/

Log:    adapt to py3

diff --git a/pypy/interpreter/astcompiler/test/test_compiler.py 
b/pypy/interpreter/astcompiler/test/test_compiler.py
--- a/pypy/interpreter/astcompiler/test/test_compiler.py
+++ b/pypy/interpreter/astcompiler/test/test_compiler.py
@@ -1010,11 +1010,7 @@
         import sys
         d = {}
         exec('# -*- coding: utf-8 -*-\n\nu = "\xf0\x9f\x92\x8b"', d)
-        if sys.maxunicode > 65535 and self.maxunicode > 65535:
-            expected_length = 1
-        else:
-            expected_length = 2
-        assert len(d['u']) == expected_length
+        assert len(d['u']) == 4
 
 
 class TestOptimizations:
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to