[Python-checkins] python/dist/src/Lib/test test_subprocess.py, 1.15, 1.16
Update of /cvsroot/python/python/dist/src/Lib/test In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2346/test Modified Files: test_subprocess.py Log Message: Raise TypeError if bufsize argument is not an integer. Patch 1071755, slightly modified. Index: test_subprocess.py =================================================================== RCS file: /cvsroot/python/python/dist/src/Lib/test/test_subprocess.py,v retrieving revision 1.15 retrieving revision 1.16 diff -u -d -r1.15 -r1.16 --- test_subprocess.py 17 Nov 2004 20:06:35 -0000 1.15 +++ test_subprocess.py 30 Nov 2004 21:04:45 -0000 1.16 @@ -394,6 +394,17 @@ # Subsequent invocations should just return the returncode self.assertEqual(p.wait(), 0) + + def test_invalid_bufsize(self): + # an invalid type of the bufsize argument should raise + # TypeError. + try: + subprocess.Popen([sys.executable, "-c", "pass"], "orange") + except TypeError: + pass + else: + self.fail("Expected TypeError") + # # POSIX tests #
participants (1)
-
astrandï¼ users.sourceforge.net