[pypy-svn] r56258 - pypy/dist/pypy/objspace/std/test
arigo at codespeak.net
arigo at codespeak.net
Thu Jul 3 14:34:41 CEST 2008
Author: arigo
Date: Thu Jul 3 14:34:40 2008
New Revision: 56258
Modified:
pypy/dist/pypy/objspace/std/test/test_builtinshortcut.py
Log:
A skipped test that shows an obscure failure triggered
by the builtinshortcut logic :-(
Modified: pypy/dist/pypy/objspace/std/test/test_builtinshortcut.py
==============================================================================
--- pypy/dist/pypy/objspace/std/test/test_builtinshortcut.py (original)
+++ pypy/dist/pypy/objspace/std/test/test_builtinshortcut.py Thu Jul 3 14:34:40 2008
@@ -1,7 +1,23 @@
from pypy.objspace.std.test import test_userobject
+WITH_BUILTINSHORTCUT = {'objspace.std.builtinshortcut': True}
+
class AppTestUserObject(test_userobject.AppTestUserObject):
- OPTIONS = {'objspace.std.builtinshortcut': True}
+ OPTIONS = WITH_BUILTINSHORTCUT
class AppTestWithMultiMethodVersion2(test_userobject.AppTestWithMultiMethodVersion2):
- OPTIONS = {'objspace.std.builtinshortcut': True}
+ OPTIONS = WITH_BUILTINSHORTCUT
+
+class AppTestBug:
+ def setup_class(cls):
+ from pypy import conftest
+ cls.space = conftest.gettestobjspace(**WITH_BUILTINSHORTCUT)
+
+ def test_frozen_subtype(self):
+ skip("in-progress")
+ class S(set): pass
+ assert S("abc") == set("abc")
+ assert set("abc") == S("abc")
+ class F(frozenset): pass
+ assert F("abc") == frozenset("abc")
+ assert frozenset("abc") == F("abc")
More information about the Pypy-commit
mailing list