[Python-checkins] cpython (3.2): Issue #12587: Correct faulty test file and reference in test_tokenize.

ned.deily python-checkins at python.org
Wed Jul 20 01:19:07 CEST 2011


http://hg.python.org/cpython/rev/0c254698e0ed
changeset:   71426:0c254698e0ed
branch:      3.2
parent:      71424:9e3b28a7898f
user:        Ned Deily <nad at acm.org>
date:        Tue Jul 19 16:15:27 2011 -0700
summary:
  Issue #12587: Correct faulty test file and reference in test_tokenize.
(Patch by Robert Xiao)

files:
  Lib/test/test_tokenize.py                                          |  2 +-
  Lib/test/tokenize_tests-utf8-coding-cookie-and-no-utf8-bom-sig.txt |  2 +-
  Misc/ACKS                                                          |  1 +
  Misc/NEWS                                                          |  3 +++
  4 files changed, 6 insertions(+), 2 deletions(-)


diff --git a/Lib/test/test_tokenize.py b/Lib/test/test_tokenize.py
--- a/Lib/test/test_tokenize.py
+++ b/Lib/test/test_tokenize.py
@@ -649,7 +649,7 @@
         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):
diff --git a/Lib/test/tokenize_tests-utf8-coding-cookie-and-no-utf8-bom-sig.txt b/Lib/test/tokenize_tests-utf8-coding-cookie-and-no-utf8-bom-sig.txt
--- a/Lib/test/tokenize_tests-utf8-coding-cookie-and-no-utf8-bom-sig.txt
+++ b/Lib/test/tokenize_tests-utf8-coding-cookie-and-no-utf8-bom-sig.txt
@@ -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
diff --git a/Misc/ACKS b/Misc/ACKS
--- a/Misc/ACKS
+++ b/Misc/ACKS
@@ -973,6 +973,7 @@
 Thomas Wouters
 Heiko Wundram
 Doug Wyatt
+Robert Xiao
 Florent Xicluna
 Hirokazu Yamamoto
 Ka-Ping Yee
diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -81,6 +81,9 @@
 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.

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list