Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
2ea6fccf
Commit
2ea6fccf
authored
Jul 19, 2011
by
Ned Deily
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #12587: Correct faulty test file and reference in test_tokenize.
(Patch by Robert Xiao)
parent
c57ed91e
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
2 deletions
+6
-2
Lib/test/test_tokenize.py
Lib/test/test_tokenize.py
+1
-1
Lib/test/tokenize_tests-utf8-coding-cookie-and-no-utf8-bom-sig.txt
...tokenize_tests-utf8-coding-cookie-and-no-utf8-bom-sig.txt
+1
-1
Misc/ACKS
Misc/ACKS
+1
-0
Misc/NEWS
Misc/NEWS
+3
-0
No files found.
Lib/test/test_tokenize.py
View file @
2ea6fccf
...
...
@@ -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
):
...
...
Lib/test/tokenize_tests-utf8-coding-cookie-and-no-utf8-bom-sig.txt
View file @
2ea6fccf
# -*- 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
...
...
Misc/ACKS
View file @
2ea6fccf
...
...
@@ -973,6 +973,7 @@ Gordon Worley
Thomas Wouters
Heiko Wundram
Doug Wyatt
Robert Xiao
Florent Xicluna
Hirokazu Yamamoto
Ka-Ping Yee
...
...
Misc/NEWS
View file @
2ea6fccf
...
...
@@ -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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment