diff options
| author | Martin Packman <martin.packman@canonical.com> | 2013-11-28 17:20:23 +0000 |
|---|---|---|
| committer | Robert Collins <robertc@robertcollins.net> | 2013-11-30 11:51:48 +1300 |
| commit | 7fe0953c8c155b920a0067d32c1f7c1abe9759a9 (patch) | |
| tree | f9799cc1302ffa7c55353e2c83281571f3b82581 /testtools/tests | |
| parent | 163ddab94539ec552c07b9866def47b10ba90d37 (diff) | |
| download | testtools-7fe0953c8c155b920a0067d32c1f7c1abe9759a9.tar.gz | |
Fix test_bom Python 3.3 test failure
Adapt test_compat.TestDetectEncoding.test_bom to skip compile
step on corner case that is no longer valid on Python 3.3
and later.
Change-Id: Ia4d5949363ca4cea603c2a0847742a1df8f68709
Diffstat (limited to 'testtools/tests')
| -rw-r--r-- | testtools/tests/test_compat.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/testtools/tests/test_compat.py b/testtools/tests/test_compat.py index fa32f59..84e57be 100644 --- a/testtools/tests/test_compat.py +++ b/testtools/tests/test_compat.py @@ -113,7 +113,8 @@ class TestDetectEncoding(testtools.TestCase): '\xef\xbb\xbfThose should be latin-1 bytes"""\n')) self._check_encoding("utf-8", ( "\xef\xbb\xbf# Is the coding: utf-8 or coding: euc-jp instead?\n", - '"""Module docstring say \xe2\x98\x86"""\n')) + '"""Module docstring say \xe2\x98\x86"""\n'), + possibly_invalid=True) def test_multiple_coding_comments(self): """Test only the first of multiple coding declarations counts""" |
