[pypy-commit] pypy stm-gc: Kill test

arigo noreply at buildbot.pypy.org
Mon Apr 23 10:28:06 CEST 2012


Author: Armin Rigo <arigo at tunes.org>
Branch: stm-gc
Changeset: r54647:328a42a15741
Date: 2012-04-23 10:18 +0200
http://bitbucket.org/pypy/pypy/changeset/328a42a15741/

Log:	Kill test

diff --git a/pypy/module/transaction/test/test_fifo.py b/pypy/module/transaction/test/test_fifo.py
deleted file mode 100644
--- a/pypy/module/transaction/test/test_fifo.py
+++ /dev/null
@@ -1,40 +0,0 @@
-from pypy.module.transaction.fifo import Fifo
-
-class Item:
-    def __init__(self, value):
-        self.value = value
-
-def test_one_item():
-    f = Fifo()
-    assert f.is_empty()
-    f.append(Item(123))
-    assert not f.is_empty()
-    item = f.popleft()
-    assert f.is_empty()
-    assert item.value == 123
-
-def test_three_items():
-    f = Fifo()
-    for i in [10, 20, 30]:
-        f.append(Item(i))
-        assert not f.is_empty()
-    for i in [10, 20, 30]:
-        assert not f.is_empty()
-        item = f.popleft()
-        assert item.value == i
-    assert f.is_empty()
-
-def test_steal():
-    for n1 in range(3):
-        for n2 in range(3):
-            f1 = Fifo()
-            f2 = Fifo()
-            for i in range(n1): f1.append(Item(10 + i))
-            for i in range(n2): f2.append(Item(20 + i))
-            f1.steal(f2)
-            assert f2.is_empty()
-            for x in range(10, 10+n1) + range(20, 20+n2):
-                assert not f1.is_empty()
-                item = f1.popleft()
-                assert item.value == x
-            assert f1.is_empty()


More information about the pypy-commit mailing list