Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(30756)

Unified Diff: Lib/lib2to3/tests/test_refactor.py

Issue 18873: "Encoding" detected in non-comment lines
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Lib/lib2to3/tests/data/false_encoding.py ('k') | Lib/test/test_importlib/source/test_source_encoding.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
--- a/Lib/lib2to3/tests/test_refactor.py Thu Sep 05 18:02:31 2013 +0300
+++ b/Lib/lib2to3/tests/test_refactor.py Sat Sep 07 17:49:25 2013 +0300
@@ -271,6 +271,10 @@
fn = os.path.join(TEST_DATA_DIR, "different_encoding.py")
self.check_file_refactoring(fn)
+ def test_false_file_encoding(self):
+ fn = os.path.join(TEST_DATA_DIR, "false_encoding.py")
+ data = self.check_file_refactoring(fn)
+
def test_bom(self):
fn = os.path.join(TEST_DATA_DIR, "bom.py")
data = self.check_file_refactoring(fn)
« no previous file with comments | « Lib/lib2to3/tests/data/false_encoding.py ('k') | Lib/test/test_importlib/source/test_source_encoding.py » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+