Author: Armin Rigo <[email protected]>
Branch:
Changeset: r57070:7307034ccd39
Date: 2012-09-01 18:47 +0200
http://bitbucket.org/pypy/pypy/changeset/7307034ccd39/
Log: issue 1249: found a failing test.
diff --git a/pypy/module/itertools/test/test_itertools.py
b/pypy/module/itertools/test/test_itertools.py
--- a/pypy/module/itertools/test/test_itertools.py
+++ b/pypy/module/itertools/test/test_itertools.py
@@ -664,6 +664,17 @@
ref = weakref.ref(b)
assert ref() is b
+ def test_tee_bug1(self):
+ import itertools
+ a, b = itertools.tee('abcde')
+ x = a.next()
+ assert x == 'a'
+ c, d = itertools.tee(a)
+ x = c.next()
+ assert x == 'b'
+ x = d.next()
+ assert x == 'b'
+
class AppTestItertools26:
def setup_class(cls):
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit