diff options
author | Stefano Rivera <stefano@rivera.za.net> | 2020-10-05 20:06:39 -0700 |
---|---|---|
committer | Stefano Rivera <stefano@rivera.za.net> | 2020-10-05 20:06:39 -0700 |
commit | 7e3fc24348569b915e450fcb23f34e2d42c884fb (patch) | |
tree | 69e4041bcd3b7533038e8b4236700522422914ac /lib-python | |
parent | (ronan, plan_rich) fix descriptor invocation inside the descr_call of W_TypeO... (diff) | |
download | pypy-7e3fc24348569b915e450fcb23f34e2d42c884fb.tar.gz pypy-7e3fc24348569b915e450fcb23f34e2d42c884fb.tar.bz2 pypy-7e3fc24348569b915e450fcb23f34e2d42c884fb.zip |
Fix test_dict failures from bpo-27945 tests
As-applied to py3.6 in 63c246992f08
Diffstat (limited to 'lib-python')
-rw-r--r-- | lib-python/2.7/test/test_dict.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib-python/2.7/test/test_dict.py b/lib-python/2.7/test/test_dict.py index 60e3fe6884..32bd6fa34e 100644 --- a/lib-python/2.7/test/test_dict.py +++ b/lib-python/2.7/test/test_dict.py @@ -698,6 +698,7 @@ class DictTest(unittest.TestCase): test_support.check_free_after_iterating(self, lambda d: iter(d.viewvalues()), dict) test_support.check_free_after_iterating(self, lambda d: iter(d.viewitems()), dict) + @test_support.cpython_only def test_equal_operator_modifying_operand(self): # test fix for seg fault reported in issue 27945 part 3. class X(object): @@ -785,6 +786,7 @@ class DictTest(unittest.TestCase): for result in d.iteritems(): if result[0] == 2: d[2] = None # free d[2] --> X(2).__del__ was called + gc.collect() self.assertRaises(RuntimeError, iter_and_mutate) |