summaryrefslogtreecommitdiff
path: root/tests/test_destructor.py
diff options
context:
space:
mode:
authorThomas Kluyver <takowl@gmail.com>2013-09-25 18:13:48 -0700
committerThomas Kluyver <takowl@gmail.com>2013-09-25 18:13:48 -0700
commit626bc4b5e2217333f37fc95f9948a9b074f3503b (patch)
tree67b8ff0fe560d659df777b24be59cd4ed74f4aed /tests/test_destructor.py
parent1d218b6cae4a405ec2786a6022feb8e40df2cfa1 (diff)
downloadpexpect-git-626bc4b5e2217333f37fc95f9948a9b074f3503b.tar.gz
Run garbage collection at start of destructor test
Diffstat (limited to 'tests/test_destructor.py')
-rwxr-xr-xtests/test_destructor.py2
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)