Author: Ronan Lamy <[email protected]>
Branch: py3.6
Changeset: r97226:63c246992f08
Date: 2019-08-20 15:46 +0100
http://bitbucket.org/pypy/pypy/changeset/63c246992f08/
Log: fix tests
diff --git a/lib-python/3/test/test_dict.py b/lib-python/3/test/test_dict.py
--- a/lib-python/3/test/test_dict.py
+++ b/lib-python/3/test/test_dict.py
@@ -1097,6 +1097,7 @@
support.check_free_after_iterating(self, lambda d: iter(d.values()),
dict)
support.check_free_after_iterating(self, lambda d: iter(d.items()),
dict)
+ @support.cpython_only
def test_equal_operator_modifying_operand(self):
# test fix for seg fault reported in issue 27945 part 3.
class X():
@@ -1179,6 +1180,7 @@
for result in d.items():
if result[0] == 2:
d[2] = None # free d[2] --> X(2).__del__ was called
+ gc.collect()
self.assertRaises(RuntimeError, iter_and_mutate)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit