[pypy-commit] pypy default: write a test that _get_interplevel_cls still works if we have multiple string
fijal
noreply at buildbot.pypy.org
Tue Nov 8 12:08:48 CET 2011
Author: Maciej Fijalkowski <fijall at gmail.com>
Branch:
Changeset: r48915:9d9d4b7af85f
Date: 2011-11-08 11:53 +0100
http://bitbucket.org/pypy/pypy/changeset/9d9d4b7af85f/
Log: write a test that _get_interplevel_cls still works if we have
multiple string implementations. just to avoid confusion I suppose
diff --git a/pypy/objspace/std/test/test_stdobjspace.py b/pypy/objspace/std/test/test_stdobjspace.py
--- a/pypy/objspace/std/test/test_stdobjspace.py
+++ b/pypy/objspace/std/test/test_stdobjspace.py
@@ -1,5 +1,6 @@
from pypy.interpreter.error import OperationError
from pypy.interpreter.gateway import app2interp
+from pypy.conftest import gettestobjspace
class TestW_StdObjSpace:
@@ -60,3 +61,10 @@
typedef = None
assert space.isinstance_w(X(), space.w_str)
+
+ def test_withstrbuf_fastpath_isinstance(self):
+ from pypy.objspace.std.stringobject import W_StringObject
+
+ space = gettestobjspace(withstrbuf=True)
+ assert space._get_interplevel_cls(space.w_str) is W_StringObject
+
More information about the pypy-commit
mailing list