Fix for running 'python -m' when using swig -builtin
Same as e05b5ea for -builtin.
Also added runtime tests to check 'python -m'.
This commit is contained in:
parent
9e83d5d5d9
commit
604ae7186b
17 changed files with 155 additions and 9 deletions
|
|
@ -1,4 +1,6 @@
|
|||
import os.path
|
||||
import subprocess
|
||||
import sys
|
||||
|
||||
testname = os.path.basename(os.path.dirname(os.path.abspath(__file__)))
|
||||
print "Testing " + testname + " - split modules"
|
||||
|
|
@ -9,3 +11,7 @@ print " Finished importing pkg1.foo"
|
|||
|
||||
if not(pkg1.foo.count() == 3):
|
||||
raise RuntimeError("test failed")
|
||||
|
||||
commandline = sys.executable + " -m pkg1.foo"
|
||||
subprocess.check_call(commandline, shell=True)
|
||||
print(" Finished running: " + commandline)
|
||||
|
|
|
|||
|
|
@ -1,4 +1,6 @@
|
|||
import os.path
|
||||
import subprocess
|
||||
import sys
|
||||
|
||||
testname = os.path.basename(os.path.dirname(os.path.abspath(__file__)))
|
||||
print "Testing " + testname + " - split modules"
|
||||
|
|
@ -9,3 +11,7 @@ print " Finished importing pkg1.foo"
|
|||
|
||||
if not(pkg1.foo.count() == 3):
|
||||
raise RuntimeError("test failed")
|
||||
|
||||
commandline = sys.executable + " -m pkg1.foo"
|
||||
subprocess.check_call(commandline, shell=True)
|
||||
print(" Finished running: " + commandline)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue