Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[1.2.X] Ensure that a Popen object is closed promptly during the test…

…s. Backport [14853].

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14854 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 1c81377af583029d014a85db62c7e78d8b924e4e 1 parent 7c23fbd
Alex Gaynor authored December 08, 2010
1  tests/regressiontests/admin_scripts/tests.py
@@ -119,6 +119,7 @@ def run_test(self, script, args, settings_file=None, apps=None):
119 119
             from subprocess import Popen, PIPE
120 120
             p = Popen(cmd, shell=True, stdin=PIPE, stdout=PIPE, stderr=PIPE)
121 121
             stdin, stdout, stderr = (p.stdin, p.stdout, p.stderr)
  122
+            p.wait()
122 123
         except ImportError:
123 124
             stdin, stdout, stderr = os.popen3(cmd)
124 125
         out, err = stdout.read(), stderr.read()

0 notes on commit 1c81377

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