Skip to content
Browse files

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
  • Loading branch information...
1 parent 68a04f2 commit 3863c906ce65c56e700ae3631639b746a0a596d3 @alex alex committed
Showing with 1 addition and 0 deletions.
  1. +1 −0 tests/regressiontests/admin_scripts/tests.py
View
1 tests/regressiontests/admin_scripts/tests.py
@@ -119,6 +119,7 @@ def run_test(self, script, args, settings_file=None, apps=None):
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()

0 comments on commit 3863c90

Please sign in to comment.
Something went wrong with that request. Please try again.