diff options
| author | Alex Gaynor <alex.gaynor@gmail.com> | 2010-12-08 04:03:07 +0000 |
|---|---|---|
| committer | Alex Gaynor <alex.gaynor@gmail.com> | 2010-12-08 04:03:07 +0000 |
| commit | 3863c906ce65c56e700ae3631639b746a0a596d3 (patch) | |
| tree | 880fc4f9e939ce15971ca6de8b5a572a77be51c1 /tests/regressiontests/admin_scripts/tests.py | |
| parent | 68a04f2d629cf0f556a968bfeeb54eeaca7af080 (diff) | |
Ensure that a Popen object is closed promptly during the tests.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@14853 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'tests/regressiontests/admin_scripts/tests.py')
| -rw-r--r-- | tests/regressiontests/admin_scripts/tests.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/regressiontests/admin_scripts/tests.py b/tests/regressiontests/admin_scripts/tests.py index bc79f08ed8..94d8f93809 100644 --- a/tests/regressiontests/admin_scripts/tests.py +++ b/tests/regressiontests/admin_scripts/tests.py @@ -119,6 +119,7 @@ class AdminScriptTestCase(unittest.TestCase): from subprocess import Popen, PIPE p = Popen(cmd, shell=True, stdin=PIPE, stdout=PIPE, stderr=PIPE) stdin, stdout, stderr = (p.stdin, p.stdout, p.stderr) + p.wait() except ImportError: stdin, stdout, stderr = os.popen3(cmd) out, err = stdout.read(), stderr.read() |
