[pypy-commit] pypy py3k: fix the syntax, and forget about longs

antocuni noreply at buildbot.pypy.org
Thu Feb 9 12:24:37 CET 2012


Author: Antonio Cuni <anto.cuni at gmail.com>
Branch: py3k
Changeset: r52275:55591785a2fb
Date: 2012-02-09 12:24 +0100
http://bitbucket.org/pypy/pypy/changeset/55591785a2fb/

Log:	fix the syntax, and forget about longs

diff --git a/pypy/interpreter/test/test_compiler.py b/pypy/interpreter/test/test_compiler.py
--- a/pypy/interpreter/test/test_compiler.py
+++ b/pypy/interpreter/test/test_compiler.py
@@ -789,9 +789,9 @@
 
     def test_tuple_constants(self):
         ns = {}
-        exec "x = (1, 0); y = (1L, 0L)" in ns
+        exec("x = (1, 0); y = (1., 0.)", ns)
         assert isinstance(ns["x"][0], int)
-        assert isinstance(ns["y"][0], long)
+        assert isinstance(ns["y"][0], float)
 
     def test_division_folding(self):
         def code(source):


More information about the pypy-commit mailing list