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

Side by Side Diff: Lib/test/test_compileall.py

Issue 10639: reindent.py converts newlines to platform default
Patch Set: Created 8 years, 8 months ago
Left:
Right:
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 unified diff | Download patch
« no previous file with comments | « Lib/test/test_codecs.py ('k') | Lib/test/test_concurrent_futures.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 import sys 1 import sys
2 import compileall 2 import compileall
3 import imp 3 import imp
4 import os 4 import os
5 import py_compile 5 import py_compile
6 import shutil 6 import shutil
7 import struct 7 import struct
8 import subprocess 8 import subprocess
9 import tempfile 9 import tempfile
10 import time 10 import time
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 self.assertCompiled(subinitfn) 241 self.assertCompiled(subinitfn)
242 self.assertCompiled(hamfn) 242 self.assertCompiled(hamfn)
243 243
244 def test_quiet(self): 244 def test_quiet(self):
245 noisy = self.assertRunOK(self.pkgdir) 245 noisy = self.assertRunOK(self.pkgdir)
246 quiet = self.assertRunOK('-q', self.pkgdir) 246 quiet = self.assertRunOK('-q', self.pkgdir)
247 self.assertNotEqual(b'', noisy) 247 self.assertNotEqual(b'', noisy)
248 self.assertEqual(b'', quiet) 248 self.assertEqual(b'', quiet)
249 249
250 def test_regexp(self): 250 def test_regexp(self):
251 self.assertRunOK('-q', '-x', r'ba[^\\/]*$', self.pkgdir) 251 self.assertRunOK('-q', '-x', 'ba[^\/]*$', self.pkgdir)
252 self.assertNotCompiled(self.barfn) 252 self.assertNotCompiled(self.barfn)
253 self.assertCompiled(self.initfn) 253 self.assertCompiled(self.initfn)
254 254
255 def test_multiple_dirs(self): 255 def test_multiple_dirs(self):
256 pkgdir2 = os.path.join(self.directory, 'foo2') 256 pkgdir2 = os.path.join(self.directory, 'foo2')
257 os.mkdir(pkgdir2) 257 os.mkdir(pkgdir2)
258 init2fn = script_helper.make_script(pkgdir2, '__init__', '') 258 init2fn = script_helper.make_script(pkgdir2, '__init__', '')
259 bar2fn = script_helper.make_script(pkgdir2, 'bar2', '') 259 bar2fn = script_helper.make_script(pkgdir2, 'bar2', '')
260 self.assertRunOK('-q', self.pkgdir, pkgdir2) 260 self.assertRunOK('-q', self.pkgdir, pkgdir2)
261 self.assertCompiled(self.initfn) 261 self.assertCompiled(self.initfn)
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
351 def test_main(): 351 def test_main():
352 support.run_unittest( 352 support.run_unittest(
353 CommandLineTests, 353 CommandLineTests,
354 CompileallTests, 354 CompileallTests,
355 EncodingTest, 355 EncodingTest,
356 ) 356 )
357 357
358 358
359 if __name__ == "__main__": 359 if __name__ == "__main__":
360 test_main() 360 test_main()
OLDNEW
« no previous file with comments | « Lib/test/test_codecs.py ('k') | Lib/test/test_concurrent_futures.py » ('j') | no next file with comments »

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