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

Unified Diff: Lib/test/test_unicode_file.py

Issue 10639: reindent.py converts newlines to platform default
Patch Set: Created 8 years, 8 months 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/test/test_ttk_guionly.py ('k') | Lib/test/test_unicode.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
--- a/Lib/test/test_unicode_file.py Tue Jul 26 09:37:46 2011 +0300
+++ b/Lib/test/test_unicode_file.py Mon Jul 25 09:47:18 2011 -0400
@@ -6,7 +6,7 @@
import unittest
from test.support import (run_unittest, rmtree,
- TESTFN_ENCODING, TESTFN_UNICODE, TESTFN_UNENCODABLE, create_empty_file)
+ TESTFN_ENCODING, TESTFN_UNICODE, TESTFN_UNENCODABLE)
if not os.path.supports_unicode_filenames:
try:
@@ -99,7 +99,8 @@
# top-level 'test' functions would be if they could take params
def _test_single(self, filename):
remove_if_exists(filename)
- create_empty_file(filename)
+ f = open(filename, "w")
+ f.close()
try:
self._do_single(filename)
finally:
« no previous file with comments | « Lib/test/test_ttk_guionly.py ('k') | Lib/test/test_unicode.py » ('j') | no next file with comments »

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