Add missing print statements to the Python import_packages tests
This commit is contained in:
parent
ac7157dfc6
commit
dd40a25349
3 changed files with 23 additions and 0 deletions
|
|
@ -1,8 +1,17 @@
|
||||||
# These examples rely on namespace packages. Don't
|
# These examples rely on namespace packages. Don't
|
||||||
# run them for old python interpreters.
|
# run them for old python interpreters.
|
||||||
import sys
|
import sys
|
||||||
|
import os.path
|
||||||
|
|
||||||
|
testname = os.path.basename(os.path.dirname(os.path.abspath(__file__)))
|
||||||
|
print "Testing " + testname + " - namespace packages"
|
||||||
|
|
||||||
if sys.version_info < (3, 3, 0):
|
if sys.version_info < (3, 3, 0):
|
||||||
|
print " Not importing nstest as Python version is < 3.3"
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
|
|
||||||
import nstest
|
import nstest
|
||||||
|
|
||||||
|
print " Finished importing nstest"
|
||||||
|
|
||||||
nstest.main()
|
nstest.main()
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,10 @@
|
||||||
|
import os.path
|
||||||
|
|
||||||
|
testname = os.path.basename(os.path.dirname(os.path.abspath(__file__)))
|
||||||
|
print "Testing " + testname + " - split modules"
|
||||||
|
|
||||||
import pkg1.foo
|
import pkg1.foo
|
||||||
|
|
||||||
|
print " Finished importing pkg1.foo"
|
||||||
|
|
||||||
assert(pkg1.foo.count() == 3)
|
assert(pkg1.foo.count() == 3)
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,10 @@
|
||||||
|
import os.path
|
||||||
|
|
||||||
|
testname = os.path.basename(os.path.dirname(os.path.abspath(__file__)))
|
||||||
|
print "Testing " + testname + " - split modules"
|
||||||
|
|
||||||
import pkg1.foo
|
import pkg1.foo
|
||||||
|
|
||||||
|
print " Finished importing pkg1.foo"
|
||||||
|
|
||||||
assert(pkg1.foo.count() == 3)
|
assert(pkg1.foo.count() == 3)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue