/
niceSOFT
/
swig
Обзор
Документация
Войти
/
niceSOFT
/
swig
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
Examples/test-suite/python/li_std_except_as_class_runme.py
31 строка
657 B
Jon Schlueter
autopep8 cleanup of Examples/test-suite/python
09 май 2015, 04:35
09 май 2015, 04:35
b77f3af
Код
Авторство
О чём код?
from li_std_except_as_class import * # This test is expected to fail with -builtin option. # Throwing builtin classes as exceptions not supported if is_python_builtin(): try: test_domain_error() except RuntimeError: pass try: test_domain_error() except RuntimeError: pass try: test_domain_error() except RuntimeError: pass else: # std::domain_error hierarchy try: test_domain_error() except domain_error: pass try: test_domain_error() except logic_error: pass try: test_domain_error() except exception: pass