[pypy-svn] r34522 - pypy/dist/pypy/objspace/std/test
cfbolz at codespeak.net
cfbolz at codespeak.net
Sun Nov 12 00:53:09 CET 2006
Author: cfbolz
Date: Sun Nov 12 00:53:08 2006
New Revision: 34522
Modified:
pypy/dist/pypy/objspace/std/test/test_strjoinobject.py
Log:
minimize test case
Modified: pypy/dist/pypy/objspace/std/test/test_strjoinobject.py
==============================================================================
--- pypy/dist/pypy/objspace/std/test/test_strjoinobject.py (original)
+++ pypy/dist/pypy/objspace/std/test/test_strjoinobject.py Sun Nov 12 00:53:08 2006
@@ -14,21 +14,12 @@
assert type(s) is str
assert 'W_StringJoinObject' in pypymagic.pypy_repr(s)
- def test_function_with_strjoin(self):
- skip("Failing")
- def f(x, y):
- if x[-1] != "/":
- x += "/"
- if y.startswith(x):
- return y[len(x):]
-
- x = "a"
- y = "a/b/c/d"
- x += ""
- y += ""
-
- assert f(x, y)
- assert f(x, y)
+ def test_add_twice(self):
+ skip("minimal failing test")
+ x = "a" + ""
+ y = x + "b"
+ c = x + "b"
+ assert c == "ab"
def test_add(self):
import pypymagic
More information about the Pypy-commit
mailing list