Author: Vincent Legoll <[email protected]>
Branch: repeatlist_strategy
Changeset: r81682:e2d983c38082
Date: 2016-01-12 08:51 +0100
http://bitbucket.org/pypy/pypy/changeset/e2d983c38082/
Log: Fix test, was: NameError: free variable 'd' referenced before
assignment in enclosing scope
diff --git a/pypy/module/test_lib_pypy/test_collections.py
b/pypy/module/test_lib_pypy/test_collections.py
--- a/pypy/module/test_lib_pypy/test_collections.py
+++ b/pypy/module/test_lib_pypy/test_collections.py
@@ -76,12 +76,12 @@
def test_remove_mutating(self):
collections = self.collections
+ d = collections.deque([MutatingCmp()])
class MutatingCmp(object):
def __eq__(self, other):
d.clear()
return True
- d = collections.deque([MutatingCmp()])
raises(IndexError, d.remove, 1)
def test_remove_failing(self):
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit