/
niceSOFT
/
swig
Обзор
Документация
Войти
/
niceSOFT
/
swig
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
Examples/test-suite/python/inctest_runme.py
21 строка
499 B
William S Fulton
Remove print statements from Python tests
13 авг 2020, 23:22
13 авг 2020, 23:22
365d496
Код
Авторство
О чём код?
import inctest try: a = inctest.A() except: raise RuntimeError("didn't find A, therefore, I didn't include 'testdir/subdir1/hello.i'") pass try: b = inctest.B() except: raise RuntimeError("didn't find B, therefore, I didn't include 'testdir/subdir2/hello.i'") pass # Check the import in subdirectory worked if inctest.importtest1(5) != 15: raise RuntimeError("import test 1 failed") if inctest.importtest2("black") != "white": raise RuntimeError("import test 2 failed")