diff options
author | Godefroid Chapelle <gotcha@bubblenet.be> | 2007-06-06 13:04:52 +0000 |
---|---|---|
committer | Godefroid Chapelle <gotcha@bubblenet.be> | 2007-06-06 13:04:52 +0000 |
commit | 3defc85fbc61616ac8c5acbf48b1a2427fe5dead (patch) | |
tree | 497cc478f4c1f57ac40c0806331b155c8b302f1e | |
parent | 4f028cf85d389008caf967304f1c094b85bc4f5f (diff) | |
download | zope-tal-3defc85fbc61616ac8c5acbf48b1a2427fe5dead.tar.gz |
shows how to run rpython from cpython
-rw-r--r-- | src/zope/tal/pypy/test/check.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/zope/tal/pypy/test/check.py b/src/zope/tal/pypy/test/check.py index daca4c3..48b1668 100644 --- a/src/zope/tal/pypy/test/check.py +++ b/src/zope/tal/pypy/test/check.py @@ -1,4 +1,11 @@ -import test +import sys + +if len(sys.argv) == 2 and sys.argv[1] == 'so': + print 'so extension' + import test +else: + from pypy.interpreter.mixedmodule import testmodule + test = testmodule('test', 'zope.tal.pypy') ip = test.Interpreter(None, 20) assert ip.power2() == 400 |