diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2013-10-19 21:21:10 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2013-10-19 21:21:10 -0400 |
commit | 18ba48b6b119f07f5c738c7fd36c2d2ede04f67e (patch) | |
tree | 17a656943635c42860d4b3751532468f952bd6c3 /tests/test_phystokens.py | |
parent | b257ecb0bdcfae09d74ab95ad621bed19934b555 (diff) | |
download | python-coveragepy-git-18ba48b6b119f07f5c738c7fd36c2d2ede04f67e.tar.gz |
We only run on 2.6, 2.7, 3.2, 3.3 now.
--HG--
branch : 4.0
Diffstat (limited to 'tests/test_phystokens.py')
-rw-r--r-- | tests/test_phystokens.py | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/tests/test_phystokens.py b/tests/test_phystokens.py index c1e51f1c..76e59f3b 100644 --- a/tests/test_phystokens.py +++ b/tests/test_phystokens.py @@ -86,11 +86,6 @@ if sys.version_info < (3, 0): run_in_temp_dir = False - if sys.version_info >= (2,4): - default_encoding = 'ascii' - else: - default_encoding = 'iso-8859-1' - def test_detect_source_encoding(self): # Various forms from http://www.python.org/dev/peps/pep-0263/ source = "# coding=cp850\n\n" @@ -110,11 +105,11 @@ if sys.version_info < (3, 0): def test_dont_detect_source_encoding_on_third_line(self): # A coding declaration doesn't count on the third line. source = "\n\n# coding=cp850\n\n" - self.assertEqual(source_encoding(source), self.default_encoding) + self.assertEqual(source_encoding(source), 'ascii') def test_detect_source_encoding_of_empty_file(self): # An important edge case. - self.assertEqual(source_encoding(""), self.default_encoding) + self.assertEqual(source_encoding(""), 'ascii') def test_bom(self): # A BOM means utf-8. |