]> granicus.if.org Git - python/commitdiff
Issue #12587: Correct faulty test file and reference in test_tokenize.
authorNed Deily <nad@acm.org>
Tue, 19 Jul 2011 23:15:27 +0000 (16:15 -0700)
committerNed Deily <nad@acm.org>
Tue, 19 Jul 2011 23:15:27 +0000 (16:15 -0700)
(Patch by Robert Xiao)

Lib/test/test_tokenize.py
Lib/test/tokenize_tests-utf8-coding-cookie-and-no-utf8-bom-sig.txt
Misc/ACKS
Misc/NEWS

index 11e6fb459657e6106b31c1d52d94040d58e2c981..d30d5eed094cc39539ce9c48efd69d2d4da99625 100644 (file)
@@ -649,7 +649,7 @@ class TestTokenizerAdheresToPep0263(TestCase):
         return roundtrip(open(path, 'rb'))
 
     def test_utf8_coding_cookie_and_no_utf8_bom(self):
-        f = 'tokenize_tests-utf8-coding-cookie-and-utf8-bom-sig.txt'
+        f = 'tokenize_tests-utf8-coding-cookie-and-no-utf8-bom-sig.txt'
         self.assertTrue(self._testFile(f))
 
     def test_latin1_coding_cookie_and_utf8_bom(self):
index d8e6c803d5a324eb43a553774ce4cd6f9fd29671..04561e48472e6726658de274ff4240d6eee3995b 100644 (file)
@@ -1,4 +1,4 @@
-# -*- coding: utf-8 -*-
+# -*- coding: utf-8 -*-
 # IMPORTANT: unlike the other test_tokenize-*.txt files, this file
 # does NOT have the utf-8 BOM signature '\xef\xbb\xbf' at the start
 # of it.  Make sure this is not added inadvertently by your editor
index ccbe152f6f9a6b389de831f4487c85ce093df282..9ac162f8fbf41a4b041d4151f9e89b7f674a1bf0 100644 (file)
--- a/Misc/ACKS
+++ b/Misc/ACKS
@@ -973,6 +973,7 @@ Gordon Worley
 Thomas Wouters
 Heiko Wundram
 Doug Wyatt
+Robert Xiao
 Florent Xicluna
 Hirokazu Yamamoto
 Ka-Ping Yee
index 3cb654c9c80fb784af145cd34285ec994888baa0..590166a05b8d93dc60664a4027dad6cad19bf79f 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -81,6 +81,9 @@ C-API
 Tests
 -----
 
+- Issue #12587: Correct faulty test file and reference in test_tokenize.
+  (Patch by Robert Xiao)
+
 - Try harder to reap dangling threads in test.support.reap_threads().
 
 - Issue #12573: Add resource checks for dangling Thread and Process objects.