Commit db535957 authored by Antoine Pitrou's avatar Antoine Pitrou

test_packaging should clean up after itself (but it doesn't really)

parent 9e42a4db
......@@ -5,15 +5,18 @@
import os
import sys
import unittest
from test.support import run_unittest, reap_children
from test.support import run_unittest, reap_children, reap_threads
@reap_threads
def test_main():
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()
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()
if __name__ == '__main__':
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment