mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Issue #12587: Correct faulty test file and reference in test_tokenize.
(Patch by Robert Xiao)
This commit is contained in:
parent
c57ed91e0c
commit
2ea6fccf64
4 changed files with 6 additions and 2 deletions
|
@ -649,7 +649,7 @@ class TestTokenizerAdheresToPep0263(TestCase):
|
||||||
return roundtrip(open(path, 'rb'))
|
return roundtrip(open(path, 'rb'))
|
||||||
|
|
||||||
def test_utf8_coding_cookie_and_no_utf8_bom(self):
|
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))
|
self.assertTrue(self._testFile(f))
|
||||||
|
|
||||||
def test_latin1_coding_cookie_and_utf8_bom(self):
|
def test_latin1_coding_cookie_and_utf8_bom(self):
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
# IMPORTANT: unlike the other test_tokenize-*.txt files, this file
|
# IMPORTANT: unlike the other test_tokenize-*.txt files, this file
|
||||||
# does NOT have the utf-8 BOM signature '\xef\xbb\xbf' at the start
|
# 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
|
# of it. Make sure this is not added inadvertently by your editor
|
||||||
|
|
|
@ -973,6 +973,7 @@ Gordon Worley
|
||||||
Thomas Wouters
|
Thomas Wouters
|
||||||
Heiko Wundram
|
Heiko Wundram
|
||||||
Doug Wyatt
|
Doug Wyatt
|
||||||
|
Robert Xiao
|
||||||
Florent Xicluna
|
Florent Xicluna
|
||||||
Hirokazu Yamamoto
|
Hirokazu Yamamoto
|
||||||
Ka-Ping Yee
|
Ka-Ping Yee
|
||||||
|
|
|
@ -81,6 +81,9 @@ C-API
|
||||||
Tests
|
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().
|
- Try harder to reap dangling threads in test.support.reap_threads().
|
||||||
|
|
||||||
- Issue #12573: Add resource checks for dangling Thread and Process objects.
|
- Issue #12573: Add resource checks for dangling Thread and Process objects.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue