[Checkins] SVN: zope.tal/branches/pypyzpt/src/zope/tal/pypy/test/check.py shows how to run rpython from cpython

Godefroid Chapelle gotcha at bubblenet.be
Wed Jun 6 09:04:54 EDT 2007


Log message for revision 76405:
  shows how to run rpython from cpython

Changed:
  U   zope.tal/branches/pypyzpt/src/zope/tal/pypy/test/check.py

-=-
Modified: zope.tal/branches/pypyzpt/src/zope/tal/pypy/test/check.py
===================================================================
--- zope.tal/branches/pypyzpt/src/zope/tal/pypy/test/check.py	2007-06-06 12:53:18 UTC (rev 76404)
+++ zope.tal/branches/pypyzpt/src/zope/tal/pypy/test/check.py	2007-06-06 13:04:52 UTC (rev 76405)
@@ -1,5 +1,12 @@
-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
 assert ip.getInstance() is None



More information about the Checkins mailing list