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

Unified Diff: Lib/packaging/tests/__main__.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/packaging/install.py ('k') | Lib/packaging/tests/support.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
--- a/Lib/packaging/tests/__main__.py Tue Jul 26 09:37:46 2011 +0300
+++ b/Lib/packaging/tests/__main__.py Mon Jul 25 09:47:18 2011 -0400
@@ -5,18 +5,15 @@
import os
import sys
import unittest
-from test.support import run_unittest, reap_children, reap_threads
+from test.support import run_unittest, reap_children
-@reap_threads
def test_main():
- try:
- start_dir = os.path.dirname(__file__)
- top_dir = os.path.dirname(os.path.dirname(start_dir))
- test_loader = unittest.TestLoader()
- run_unittest(test_loader.discover(start_dir, top_level_dir=top_dir))
- finally:
- reap_children()
+ start_dir = os.path.dirname(__file__)
+ top_dir = os.path.dirname(os.path.dirname(start_dir))
+ test_loader = unittest.TestLoader()
+ run_unittest(test_loader.discover(start_dir, top_level_dir=top_dir))
+ reap_children()
if __name__ == '__main__':
« 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+