[pypy-svn] r11636 - pypy/dist/pypy/lib/test2
arigo at codespeak.net
arigo at codespeak.net
Fri Apr 29 23:06:08 CEST 2005
Author: arigo
Date: Fri Apr 29 23:06:08 2005
New Revision: 11636
Modified:
pypy/dist/pypy/lib/test2/test_class.py
Log:
- remove the hacks at the beginning of this test file, no longer needed.
- PyPy follows 2.4 and Jython's strict type-checking of what __int__&co
return (of course: Samuele wrote that part in PyPy :-)
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 Fri Apr 29 23:06:08 2005
@@ -2,25 +2,6 @@
from test.test_support import TestFailed
-# HACK BEGIN
-
-# After this implementation is complete and
-# incorporated into the core after translation,
-# this test file should really vanish!
-
-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)
-mod = new.module("_classobj")
-mod.__file__ = fpath
-execfile(fpath, mod.__dict__)
-
-__metaclass__ = mod.classobj
-
-# HACK END
-
testmeths = [
# Binary operations
@@ -214,7 +195,8 @@
-testme
+testme
abs(testme)
-if sys.platform[:4] != 'java':
+# PyPy enforces the same rule as Jython and CPython 2.4
+if 0: # sys.platform[:4] != 'java':
int(testme)
long(testme)
float(testme)
More information about the Pypy-commit
mailing list