summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_subprocess.py
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2004-10-13 03:21:35 (GMT)
committerTim Peters <tim.peters@gmail.com>2004-10-13 03:21:35 (GMT)
commit876c43245ea0a42090636222c02ccf359e4f5aa8 (patch)
tree398c335c1cae9d439f95aa905fc17f235ee331b2 /Lib/test/test_subprocess.py
parente8374a55c431bb343f1b9274e7a9f6ee8bfc0e3b (diff)
downloadcpython-876c43245ea0a42090636222c02ccf359e4f5aa8.zip
cpython-876c43245ea0a42090636222c02ccf359e4f5aa8.tar.gz
cpython-876c43245ea0a42090636222c02ccf359e4f5aa8.tar.bz2
Windows test_creationflags() test: print msg to stderr informing the
tester that a DOS box is expected to flash. Slash the sleep from 2 seconds to a quarter second (why would we want to wait 2 seconds just to stare at a DOS box?).
Diffstat (limited to 'Lib/test/test_subprocess.py')
-rw-r--r--Lib/test/test_subprocess.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_subprocess.py b/Lib/test/test_subprocess.py
index 3312f7c..a11183b 100644
--- a/Lib/test/test_subprocess.py
+++ b/Lib/test/test_subprocess.py
@@ -481,8 +481,9 @@ class ProcessTestCase(unittest.TestCase):
def test_creationflags(self):
# creationflags argument
CREATE_NEW_CONSOLE = 16
+ sys.stderr.write(" a DOS box should flash briefly ...\n")
subprocess.call(sys.executable +
- ' -c "import time; time.sleep(2)"',
+ ' -c "import time; time.sleep(0.25)"',
creationflags=CREATE_NEW_CONSOLE)
def test_invalid_args(self):