[pypy-commit] pypy default: issue 1249: found a failing test.
arigo
noreply at buildbot.pypy.org
Sat Sep 1 18:48:01 CEST 2012
Author: Armin Rigo <arigo at tunes.org>
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):
More information about the pypy-commit
mailing list