summaryrefslogtreecommitdiffstats
path: root/00135-fix-test-within-test_weakref-in-debug-build.patch
diff options
context:
space:
mode:
authorMiro Hrončok <miro@hroncok.cz>2016-08-09 12:36:16 +0200
committerMiro Hrončok <miro@hroncok.cz>2016-09-26 10:20:04 +0200
commite32ce18e762bfad63a243fa6dcb192b3e5ae9588 (patch)
tree52df28be6fe15714554555c8bc772cb67f167dbc /00135-fix-test-within-test_weakref-in-debug-build.patch
parentf5845b442d5e3c252df4de7d56bbafe3e8737613 (diff)
downloadpython34-e32ce18e762bfad63a243fa6dcb192b3e5ae9588.tar.gz
python34-e32ce18e762bfad63a243fa6dcb192b3e5ae9588.tar.xz
python34-e32ce18e762bfad63a243fa6dcb192b3e5ae9588.zip
Initial import of Fedora 23 package
Diffstat (limited to '00135-fix-test-within-test_weakref-in-debug-build.patch')
-rw-r--r--00135-fix-test-within-test_weakref-in-debug-build.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/00135-fix-test-within-test_weakref-in-debug-build.patch b/00135-fix-test-within-test_weakref-in-debug-build.patch
new file mode 100644
index 0000000..6ed7801
--- /dev/null
+++ b/00135-fix-test-within-test_weakref-in-debug-build.patch
@@ -0,0 +1,17 @@
+diff -up Python-3.2b2/Lib/test/test_weakref.py.test-weakref-COUNT_ALLOCS_fix Python-3.2b2/Lib/test/test_weakref.py
+--- Python-3.2b2/Lib/test/test_weakref.py.test-weakref-COUNT_ALLOCS_fix 2010-12-28 20:33:46.963364990 -0500
++++ Python-3.2b2/Lib/test/test_weakref.py 2010-12-28 20:35:44.115935248 -0500
+@@ -583,9 +583,10 @@ class ReferencesTestCase(TestBase):
+ # been cleared without their callbacks executing. OTOH, the weakref
+ # to C is bound to a function local (wr), and wasn't trash, so that
+ # callback should have been invoked when C went away.
+- self.assertEqual(alist, ["C went away"])
+- # The remaining weakref should be dead now (its callback ran).
+- self.assertEqual(wr(), None)
++ if not hasattr(sys, 'getcounts'):
++ self.assertEqual(alist, ["C went away"])
++ # The remaining weakref should be dead now (its callback ran).
++ self.assertEqual(wr(), None)
+
+ del alist[:]
+ gc.collect()