diff options
author | Thomas Kluyver <takowl@gmail.com> | 2013-09-25 18:13:48 -0700 |
---|---|---|
committer | Thomas Kluyver <takowl@gmail.com> | 2013-09-25 18:13:48 -0700 |
commit | 626bc4b5e2217333f37fc95f9948a9b074f3503b (patch) | |
tree | 67b8ff0fe560d659df777b24be59cd4ed74f4aed /tests/test_destructor.py | |
parent | 1d218b6cae4a405ec2786a6022feb8e40df2cfa1 (diff) | |
download | pexpect-git-626bc4b5e2217333f37fc95f9948a9b074f3503b.tar.gz |
Run garbage collection at start of destructor test
Diffstat (limited to 'tests/test_destructor.py')
-rwxr-xr-x | tests/test_destructor.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test_destructor.py b/tests/test_destructor.py index d6b176c..0f23ffd 100755 --- a/tests/test_destructor.py +++ b/tests/test_destructor.py @@ -26,6 +26,8 @@ import time class TestCaseDestructor(PexpectTestCase.PexpectTestCase): def test_destructor (self): + gc.collect() + time.sleep(3) p1 = pexpect.spawn('%s hello_world.py' % self.PYTHONBIN) p2 = pexpect.spawn('%s hello_world.py' % self.PYTHONBIN) p3 = pexpect.spawn('%s hello_world.py' % self.PYTHONBIN) |