Add doctest_checker for python3 compatibility
This commit is contained in:
parent
b547b00c8a
commit
434d598c10
|
@ -6,6 +6,7 @@ import doctest
|
||||||
import trytond.tests.test_tryton
|
import trytond.tests.test_tryton
|
||||||
from trytond.tests.test_tryton import ModuleTestCase
|
from trytond.tests.test_tryton import ModuleTestCase
|
||||||
from trytond.tests.test_tryton import doctest_setup, doctest_teardown
|
from trytond.tests.test_tryton import doctest_setup, doctest_teardown
|
||||||
|
from trytond.tests.test_tryton import doctest_checker
|
||||||
|
|
||||||
|
|
||||||
class CountryZipEsTestCase(ModuleTestCase):
|
class CountryZipEsTestCase(ModuleTestCase):
|
||||||
|
@ -19,5 +20,6 @@ def suite():
|
||||||
CountryZipEsTestCase))
|
CountryZipEsTestCase))
|
||||||
suite.addTests(doctest.DocFileSuite('scenario_country_zip_es.rst',
|
suite.addTests(doctest.DocFileSuite('scenario_country_zip_es.rst',
|
||||||
setUp=doctest_setup, tearDown=doctest_teardown, encoding='utf-8',
|
setUp=doctest_setup, tearDown=doctest_teardown, encoding='utf-8',
|
||||||
|
checker=doctest_checker,
|
||||||
optionflags=doctest.REPORT_ONLY_FIRST_FAILURE))
|
optionflags=doctest.REPORT_ONLY_FIRST_FAILURE))
|
||||||
return suite
|
return suite
|
||||||
|
|
Loading…
Reference in New Issue