[pypy-commit] pypy default: A failing test.
arigo
noreply at buildbot.pypy.org
Tue Jun 21 19:09:35 CEST 2011
Author: Armin Rigo <arigo at tunes.org>
Branch:
Changeset: r45038:a608b6d4a289
Date: 2011-06-21 18:53 +0200
http://bitbucket.org/pypy/pypy/changeset/a608b6d4a289/
Log: A failing test.
diff --git a/pypy/module/imp/test/test_import.py b/pypy/module/imp/test/test_import.py
--- a/pypy/module/imp/test/test_import.py
+++ b/pypy/module/imp/test/test_import.py
@@ -37,6 +37,7 @@
ambig = "imamodule = 1",
test_reload = "def test():\n raise ValueError\n",
infinite_reload = "import infinite_reload; reload(infinite_reload)",
+ del_sys_module = "import sys\ndel sys.modules['del_sys_module']\n",
)
root.ensure("notapackage", dir=1) # empty, no __init__.py
setuppkg("pkg",
@@ -562,6 +563,14 @@
except ImportError:
pass
+ def test_del_from_sys_modules(self):
+ try:
+ import del_sys_module
+ except ImportError:
+ pass # ok
+ else:
+ assert False, 'should not work'
+
class TestAbi:
def test_abi_tag(self):
space1 = gettestobjspace(soabi='TEST')
More information about the pypy-commit
mailing list