Add doctest_checker for python3 compatibility

This commit is contained in:
Sergi Almacellas Abellana 2016-03-29 14:52:18 +02:00
parent b547b00c8a
commit 434d598c10
1 changed files with 2 additions and 0 deletions

View File

@ -6,6 +6,7 @@ import doctest
import trytond.tests.test_tryton
from trytond.tests.test_tryton import ModuleTestCase
from trytond.tests.test_tryton import doctest_setup, doctest_teardown
from trytond.tests.test_tryton import doctest_checker
class CountryZipEsTestCase(ModuleTestCase):
@ -19,5 +20,6 @@ def suite():
CountryZipEsTestCase))
suite.addTests(doctest.DocFileSuite('scenario_country_zip_es.rst',
setUp=doctest_setup, tearDown=doctest_teardown, encoding='utf-8',
checker=doctest_checker,
optionflags=doctest.REPORT_ONLY_FIRST_FAILURE))
return suite