Replace assert from Python testcases with code that always runs.
assert code is sometimes not executed, eg when running python -O.
This commit is contained in:
parent
84b06fa21b
commit
cc7319f52f
5 changed files with 18 additions and 9 deletions
|
|
@ -14,4 +14,5 @@ else:
|
|||
StaticFunctionTest().static_func_2(1)
|
||||
StaticFunctionTest().static_func_3(1, 2)
|
||||
StaticMemberTest.static_int = 10
|
||||
assert StaticMemberTest.static_int == 10
|
||||
if not StaticMemberTest.static_int == 10:
|
||||
raise RuntimeError("static_int not 10")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue