[pypy-commit] pypy py3.3: Apply the same changes as the py3k branch
amauryfa
noreply at buildbot.pypy.org
Tue Dec 30 17:22:38 CET 2014
Author: Amaury Forgeot d'Arc <amauryfa at gmail.com>
Branch: py3.3
Changeset: r75162:0edf9ccb3b63
Date: 2014-12-29 22:34 +0100
http://bitbucket.org/pypy/pypy/changeset/0edf9ccb3b63/
Log: Apply the same changes as the py3k branch
diff --git a/lib-python/3/test/test_code.py b/lib-python/3/test/test_code.py
--- a/lib-python/3/test/test_code.py
+++ b/lib-python/3/test/test_code.py
@@ -81,7 +81,7 @@
cellvars: ()
freevars: ()
nlocals: 0
-flags: 67
+flags: 1048643
consts: ("'doc string'", 'None')
>>> def keywordonly_args(a,b,*,k1):
@@ -104,7 +104,7 @@
import unittest
import weakref
-from test.support import run_doctest, run_unittest, cpython_only
+from test.support import run_doctest, run_unittest, cpython_only, gc_collect
def consts(t):
@@ -156,6 +156,7 @@
coderef = weakref.ref(f.__code__, callback)
self.assertTrue(bool(coderef()))
del f
+ gc_collect()
self.assertFalse(bool(coderef()))
self.assertTrue(self.called)
More information about the pypy-commit
mailing list