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:
William S Fulton 2016-06-19 20:11:51 +01:00
commit cc7319f52f
5 changed files with 18 additions and 9 deletions

View file

@ -1,3 +1,4 @@
#!/usr/bin/env python
import operbool
assert not operbool.Test()
if operbool.Test():
raise RuntimeError("operbool failed")