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

Side by Side Diff: Lib/packaging/tests/__main__.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/packaging/install.py ('k') | Lib/packaging/tests/support.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 """Packaging test suite runner.""" 1 """Packaging test suite runner."""
2 2
3 # Ripped from importlib tests, thanks Brett! 3 # Ripped from importlib tests, thanks Brett!
4 4
5 import os 5 import os
6 import sys 6 import sys
7 import unittest 7 import unittest
8 from test.support import run_unittest, reap_children, reap_threads 8 from test.support import run_unittest, reap_children
9 9
10 10
11 @reap_threads
12 def test_main(): 11 def test_main():
13 try: 12 start_dir = os.path.dirname(__file__)
14 start_dir = os.path.dirname(__file__) 13 top_dir = os.path.dirname(os.path.dirname(start_dir))
15 top_dir = os.path.dirname(os.path.dirname(start_dir)) 14 test_loader = unittest.TestLoader()
16 test_loader = unittest.TestLoader() 15 run_unittest(test_loader.discover(start_dir, top_level_dir=top_dir))
17 run_unittest(test_loader.discover(start_dir, top_level_dir=top_dir)) 16 reap_children()
18 finally:
19 reap_children()
20 17
21 18
22 if __name__ == '__main__': 19 if __name__ == '__main__':
23 test_main() 20 test_main()
OLDNEW
« no previous file with comments | « Lib/packaging/install.py ('k') | Lib/packaging/tests/support.py » ('j') | no next file with comments »

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