[pypy-svn] r8979 - pypy/dist/pypy/lib/test2
pedronis at codespeak.net
pedronis at codespeak.net
Tue Feb 8 11:44:29 CET 2005
Author: pedronis
Date: Tue Feb 8 11:44:29 2005
New Revision: 8979
Modified:
pypy/dist/pypy/lib/test2/test_class.py
Log:
make this temp test and the use of NiceCompile in _classobj mutually non fragile
Modified: pypy/dist/pypy/lib/test2/test_class.py
==============================================================================
--- pypy/dist/pypy/lib/test2/test_class.py (original)
+++ pypy/dist/pypy/lib/test2/test_class.py Tue Feb 8 11:44:29 2005
@@ -8,14 +8,16 @@
# incorporated into the core after translation,
# this test file should really vanish!
-import pypy, os
+import pypy, os, new
prefix = os.path.dirname(pypy.__file__)
libdir = os.path.join(prefix, "lib")
fname = "_classobj.py"
fpath = os.path.join(libdir, fname)
-execfile(fpath)
+mod = new.module("_classobj")
+mod.__file__ = fpath
+execfile(fpath, mod.__dict__)
-__metaclass__ = classobj
+__metaclass__ = mod.classobj
# HACK END
More information about the Pypy-commit
mailing list