diff options
author | Christian Heimes <christian@cheimes.de> | 2007-12-08 17:28:33 (GMT) |
---|---|---|
committer | Christian Heimes <christian@cheimes.de> | 2007-12-08 17:28:33 (GMT) |
commit | 895627ff27aad563b2ae5b272998f17521b6e415 (patch) | |
tree | 3528991cd6bb763acf95258884c3159a6866121b /Lib | |
parent | 576bf65fea78ba6fe41c82f64183b6a8ecdf4643 (diff) | |
download | cpython-895627ff27aad563b2ae5b272998f17521b6e415.zip cpython-895627ff27aad563b2ae5b272998f17521b6e415.tar.gz cpython-895627ff27aad563b2ae5b272998f17521b6e415.tar.bz2 |
Merged revisions 59407-59422 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r59407 | armin.rigo | 2007-12-07 20:19:55 +0100 (Fri, 07 Dec 2007) | 2 lines
This is probably what was meant here.
........
r59410 | guido.van.rossum | 2007-12-08 05:38:23 +0100 (Sat, 08 Dec 2007) | 2 lines
Be (just a bit :) more specific about release date.
........
r59411 | alexandre.vassalotti | 2007-12-08 05:49:22 +0100 (Sat, 08 Dec 2007) | 3 lines
Fix issue #1530.
Return an error exit status if not all tests passes.
........
r59413 | georg.brandl | 2007-12-08 11:56:39 +0100 (Sat, 08 Dec 2007) | 2 lines
Fix tpyo.
........
r59414 | georg.brandl | 2007-12-08 12:05:05 +0100 (Sat, 08 Dec 2007) | 2 lines
Fix markup in whatsnew, use new directive in ACKS.
........
r59415 | georg.brandl | 2007-12-08 12:05:36 +0100 (Sat, 08 Dec 2007) | 2 lines
Fix Eren's name.
........
r59416 | georg.brandl | 2007-12-08 12:23:13 +0100 (Sat, 08 Dec 2007) | 2 lines
Add examples to the datetime documentation. Written for GHOP by "h4wk.cz".
........
r59417 | skip.montanaro | 2007-12-08 15:37:43 +0100 (Sat, 08 Dec 2007) | 2 lines
Note that open() is the preferred way to open files (issue 1510).
........
r59418 | skip.montanaro | 2007-12-08 16:23:31 +0100 (Sat, 08 Dec 2007) | 1 line
+ "context manager"
........
r59419 | skip.montanaro | 2007-12-08 16:26:16 +0100 (Sat, 08 Dec 2007) | 1 line
correct email address
........
r59420 | skip.montanaro | 2007-12-08 16:33:24 +0100 (Sat, 08 Dec 2007) | 3 lines
When splitting, avoid making a copy of the string if the split doesn't find
anything (issue 1538).
........
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/doctest.py | 9 | ||||
-rw-r--r-- | Lib/httplib.py | 2 | ||||
-rw-r--r-- | Lib/test/README | 11 | ||||
-rw-r--r-- | Lib/test/test_tempfile.py | 2 |
4 files changed, 9 insertions, 15 deletions
diff --git a/Lib/doctest.py b/Lib/doctest.py index eb863cb..4a2da32 100644 --- a/Lib/doctest.py +++ b/Lib/doctest.py @@ -2651,12 +2651,15 @@ def _test(): sys.path.insert(0, dirname) m = __import__(filename[:-3]) del sys.path[0] - testmod(m) + failures, _ = testmod(m) else: - testfile(filename, module_relative=False) + failures, _ = testfile(filename, module_relative=False) + if failures: + return 1 else: r = unittest.TextTestRunner() r.run(DocTestSuite()) + return 0 if __name__ == "__main__": - _test() + sys.exit(_test()) diff --git a/Lib/httplib.py b/Lib/httplib.py index dc8bd6b..2b38e76 100644 --- a/Lib/httplib.py +++ b/Lib/httplib.py @@ -478,7 +478,7 @@ class HTTPResponse: # Some HTTP/1.0 implementations have support for persistent # connections, using rules different than HTTP/1.1. - # For older HTTP, Keep-Alive indiciates persistent connection. + # For older HTTP, Keep-Alive indicates persistent connection. if self.msg.getheader("keep-alive"): return False diff --git a/Lib/test/README b/Lib/test/README index 8aab357..fdc847c 100644 --- a/Lib/test/README +++ b/Lib/test/README @@ -3,7 +3,7 @@ Writing Python Regression Tests +++++++++++++++++++++++++++++++ :Author: Skip Montanaro -:Contact: skip@mojam.com +:Contact: skip@pobox.com Introduction ============ @@ -382,15 +382,6 @@ test_support provides the following useful objects: statement is *not* correct Python syntax. -Python and C statement coverage results are currently available at - - http://www.musi-cal.com/~skip/python/Python/dist/src/ - -As of this writing (July, 2000) these results are being generated nightly. -You can refer to the summaries and the test coverage output files to see -where coverage is adequate or lacking and write test cases to beef up the -coverage. - Some Non-Obvious regrtest Features ================================== * Automagic test detection: When you create a new test file diff --git a/Lib/test/test_tempfile.py b/Lib/test/test_tempfile.py index 8d91927..1e41f9e 100644 --- a/Lib/test/test_tempfile.py +++ b/Lib/test/test_tempfile.py @@ -299,7 +299,7 @@ class test__mkstemp_inner(TC): # On Windows a spawn* /path/ with embedded spaces shouldn't be quoted, # but an arg with embedded spaces should be decorated with double # quotes on each end - if sys.platform in ('win32'): + if sys.platform in ('win32',): decorated = '"%s"' % sys.executable tester = '"%s"' % tester else: |