diff options
author | Michael Howitz <mh@gocept.com> | 2021-09-06 08:11:11 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-06 08:11:11 +0200 |
commit | 53141afa75f6cdf0c75e2496d697313820a03039 (patch) | |
tree | 9084f1a2994c8c9a6e592a433c4d6f66b2de5b51 /src/zope/i18n/tests/test_zcml.py | |
parent | 59d212f62d20f9bad168a0dcb8bb137bd625130b (diff) | |
parent | 51480fc597fa04b2a044b873605cb114efacf9f6 (diff) | |
download | zope-i18n-53141afa75f6cdf0c75e2496d697313820a03039.tar.gz |
Merge pull request #49 from zopefoundation/config-with-pure-python-autopep8
Config with pure python
Diffstat (limited to 'src/zope/i18n/tests/test_zcml.py')
-rw-r--r-- | src/zope/i18n/tests/test_zcml.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/zope/i18n/tests/test_zcml.py b/src/zope/i18n/tests/test_zcml.py index 52ee437..cd3d2b4 100644 --- a/src/zope/i18n/tests/test_zcml.py +++ b/src/zope/i18n/tests/test_zcml.py @@ -25,10 +25,10 @@ from zope.component.testing import PlacelessSetup from zope.configuration import xmlconfig import zope.i18n.tests +from zope.i18n._compat import text_type from zope.i18n.interfaces import ITranslationDomain from zope.i18n import config -text_type = str if bytes is not str else unicode template = """\ <configure @@ -37,6 +37,7 @@ template = """\ %s </configure>""" + class DirectivesTest(PlacelessSetup, unittest.TestCase): # This test suite needs the [zcml] and [compile] extra dependencies @@ -156,7 +157,8 @@ class DirectivesTest(PlacelessSetup, unittest.TestCase): xmlconfig.string( template % ''' <configure package="zope.i18n.tests"> - <i18n:registerTranslations directory="locale3" domain="zope-i18n" /> + <i18n:registerTranslations directory="locale3" + domain="zope-i18n" /> </configure> ''', self.context) path = os.path.join(os.path.dirname(zope.i18n.tests.__file__), |