Replace assert in Python import examples with code that always runs.
This commit is contained in:
parent
2165f27f5d
commit
aedc3c3eaf
6 changed files with 12 additions and 6 deletions
|
|
@ -2,4 +2,5 @@
|
|||
|
||||
import robin
|
||||
|
||||
assert(robin.run() == "AWAY!")
|
||||
if not(robin.run() == "AWAY!"):
|
||||
raise RuntimeError("test failed")
|
||||
|
|
|
|||
|
|
@ -4,4 +4,5 @@ sys.path.insert(0, 'path1')
|
|||
|
||||
from brave import robin
|
||||
|
||||
assert(robin.run() == "AWAY!")
|
||||
if not(robin.run() == "AWAY!"):
|
||||
raise RuntimeError("test failed")
|
||||
|
|
|
|||
|
|
@ -6,4 +6,5 @@ sys.path.insert(0, 'path3')
|
|||
|
||||
from brave import robin
|
||||
|
||||
assert(robin.run() == "AWAY!")
|
||||
if not(robin.run() == "AWAY!"):
|
||||
raise RuntimeError("test failed")
|
||||
|
|
|
|||
|
|
@ -6,4 +6,5 @@ sys.path.insert(0, 'path3')
|
|||
|
||||
from brave import robin
|
||||
|
||||
assert(robin.run() == "AWAY!")
|
||||
if not(robin.run() == "AWAY!"):
|
||||
raise RuntimeError("test failed")
|
||||
|
|
|
|||
|
|
@ -7,4 +7,5 @@ import pkg1.foo
|
|||
|
||||
print " Finished importing pkg1.foo"
|
||||
|
||||
assert(pkg1.foo.count() == 3)
|
||||
if not(pkg1.foo.count() == 3):
|
||||
raise RuntimeError("test failed")
|
||||
|
|
|
|||
|
|
@ -7,4 +7,5 @@ import pkg1.foo
|
|||
|
||||
print " Finished importing pkg1.foo"
|
||||
|
||||
assert(pkg1.foo.count() == 3)
|
||||
if not(pkg1.foo.count() == 3):
|
||||
raise RuntimeError("test failed")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue