Skip to content

Commit

Permalink
Merge pull request gstein#16 from sebbASF/py3tests
Browse files Browse the repository at this point in the history
Tests don't work on Python3
  • Loading branch information
gstein authored Apr 6, 2023
2 parents 4e19e1d + b2f0672 commit ca48025
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/ezt_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ def testSimpleReplacement(self):
d = self._runTemplate('this is a [X].', {'X': 'test'})
self.assertEqual('this is a test.', d)

@unittest.skipIf(sys.version_info[0] >= 3, 'Does not work on Python3')
def testSimpleReplacementUtf8Encoded(self):
### fails because _runTemplate changes the bytes back to
### a unicode string so that _parse() can .split() it.
Expand Down Expand Up @@ -73,6 +74,7 @@ def testLiteral(self):
d = self._runTemplate('this is a ["trivial test"].', {})
self.assertEqual('this is a trivial test.', d)

@unittest.skipIf(sys.version_info[0] >= 3, 'Does not work on Python3')
def testLiteralUtf8Encoded(self):
### fails because _runTemplate changes the bytes back to
### a unicode string so that _parse() can .split() it.
Expand Down

0 comments on commit ca48025

Please sign in to comment.