Raymond Hettinger
90e8f8cd9b
Fix count of flag fields. Being one short caused the 'quiet' option not to print.
2011-01-05 20:08:25 +00:00
Antoine Pitrou
452196fef1
Issue #5485 : Add tests for the UseForeignDTD method of expat parser objects.
...
Patch by Jean-Paul Calderone and Sandro Tosi.
2011-01-05 18:44:14 +00:00
Antoine Pitrou
a83878e693
Issue #5485 : Add doc for expat.xmlparser.SetParamEntityParsing.
2011-01-05 18:37:22 +00:00
Georg Brandl
183fe81f8f
#10130 : Prepare for building epub-format docs.
2011-01-05 11:00:25 +00:00
Georg Brandl
069149155b
Fix duplicate end tag.
2011-01-05 10:59:48 +00:00
Victor Stinner
b996f740f2
test_time: assertEquals => assertEqual
2011-01-05 03:58:54 +00:00
Victor Stinner
8786d3d0dc
Issue #10756 : add the author, Andreas Stührk
2011-01-05 03:56:22 +00:00
Victor Stinner
c932b65428
test_threading: use Popen.communicate() instead of .wait()
...
Popen.communicate() avoids deadlocks and close the pipes when done. This commit
fixes a ResourceWarning(unclosed pipe).
2011-01-05 03:54:28 +00:00
Victor Stinner
4b2b43d988
regrtest: close the new stdout and restore the original stdout at exit
...
Fix a ResourceWarning(unclosed file).
2011-01-05 03:54:26 +00:00
Victor Stinner
358e11d928
Issue #10756 : atexit normalizes the exception before displaying it.
2011-01-05 03:54:25 +00:00
Victor Stinner
29e762c941
test_bytes: test PyBytes_FromFormat() using ctypes
2011-01-05 03:33:28 +00:00
Victor Stinner
aaa4e9a438
Remove arbitrary string length limits
...
PyUnicode_FromFormat() and PyErr_Format() allocates a buffer of the needed
size, it is no more a fixed-buffer of 500 bytes.
2011-01-05 03:33:26 +00:00
R. David Murray
477efb3944
#10790 : make append work when output codec is different from input codec
...
There's still a bug here (the encode call shouldn't use the 'errors'
paramter), but I'll fix that later.
2011-01-05 01:39:32 +00:00
Victor Stinner
ca1e7ec344
test_unicode: use ctypes to test PyUnicode_FromFormat()
...
Instead of _testcapi.format_unicode() because it has a limited API: it requires
exactly one argument of type unicode.
2011-01-05 00:19:28 +00:00
Antoine Pitrou
1ec121d0d1
Fix test_time under Windows
2011-01-04 22:54:30 +00:00
Victor Stinner
9d6f9367ea
Issue #9566 : PyUnicode_FromFormatV() doesn't support %zi, use %zd instead
2011-01-04 22:00:04 +00:00
Victor Stinner
ed7e222454
Issue #9566 : explain why (int)len cannot underflow
2011-01-04 21:58:10 +00:00
Antoine Pitrou
c99823211b
In subprocess, wrap pipe fds before launching the child. Hopefully this
...
will fix intermittent failures on some buildbots (issue #8458 ).
2011-01-04 19:07:07 +00:00
Gregory P. Smith
9bd4a245f2
Fix the new bug introduced in the r87710 fix for issue 6643. DummyThread
...
deletes its _block attribute, deal with that. This prevents an uncaught
exception in a thread during test_thread.
This refactors a bit to better match what I did in the r87727 backport to 2.7.
2011-01-04 18:33:38 +00:00
Georg Brandl
3fb97ae0f7
Fix exception catching.
2011-01-04 17:27:13 +00:00
Alexander Belopolsky
5da468f94a
Whitespace cleanup
2011-01-04 17:15:52 +00:00
Alexander Belopolsky
ecebdc7469
Issue #8013 : Fix time.ctime test failure on 32-bit platforms.
2011-01-04 17:08:04 +00:00
Alexander Belopolsky
b9588b528a
Issue #8013 : time.asctime and time.ctime no longer call system asctime
...
and ctime functions. The year range for time.asctime is now 1900
through maxint. The range for time.ctime is the same as for
time.localtime. The string produced by these functions is longer than
24 characters when year is greater than 9999.
2011-01-04 16:34:30 +00:00
Vinay Sajip
2427ab9d6f
logging HOWTO: fixed markup for numbered handler list.
2011-01-04 13:58:49 +00:00
Victor Stinner
dc5554008f
Issue #9015 , #9611 : stdprinter.write() clamps the length to 2^31-1 on Windows
2011-01-04 13:15:39 +00:00
Victor Stinner
0fcab4a3ed
Issue #9566 : use Py_ssize_t instead of int
2011-01-04 12:59:15 +00:00
Victor Stinner
6ab8e8298e
Issue #8992 : convertsimple() doesn't need to fill msgbuf if an error occurred
...
Return msgbug on error is enough.
2011-01-04 11:16:49 +00:00
Victor Stinner
a093d0d6a9
Issue #8992 : Simplify addcleanup() API
...
Don't need to handle unknown destructor anymore.
2011-01-04 11:16:48 +00:00
Victor Stinner
c3a51ecb85
Issue #10819 : SocketIO.name property returns -1 when its closed, instead of
...
raising a ValueError, to fix repr().
2011-01-04 11:00:45 +00:00
Victor Stinner
8848c7a37f
Issue #8650 : zlib.compress() and zlib.decompress() raise an OverflowError if
...
the input buffer length doesn't fit into an unsigned int (length bigger than
2^32-1 bytes).
2011-01-04 02:07:36 +00:00
Victor Stinner
b3c9e073fc
Issue #8651 : PyArg_Parse*() functions raise an OverflowError if the file
...
doesn't have PY_SSIZE_T_CLEAN define and the size doesn't fit in an int
(length bigger than 2^31-1).
2011-01-04 02:07:34 +00:00
Victor Stinner
e6edec2371
Issue #9015 , #9611 : FileIO.readinto(), FileIO.write() and os.write() clamp the
...
length to 2^31-1 on Windows.
2011-01-04 00:29:35 +00:00
Antoine Pitrou
560f9dab55
Issue #10267 : Fix refleak in test_ttk_guionly. Patch by Hirokazu Yamamoto.
2011-01-04 00:24:03 +00:00
Victor Stinner
04ba966eab
test_httplib: fix a DeprecationWarning, assertEquals=>assertEqual
2011-01-04 00:04:46 +00:00
Victor Stinner
7a6a0093f3
test_array: fix the DeprecationWarning('object.__init__() takes no parameters')
2011-01-04 00:04:44 +00:00
Antoine Pitrou
23683ef26d
Issue #10333 : Remove ancient GC API, which has been deprecated since
...
Python 2.2.
2011-01-04 00:00:31 +00:00
Victor Stinner
cae969e70a
fix test_unittest: ignore DeprecationWarning on assertDictContainsSubset()
2011-01-03 23:56:12 +00:00
Antoine Pitrou
47f14bade8
Un-complicate some code
2011-01-03 23:42:01 +00:00
Antoine Pitrou
dcdc3b4c5d
Add some more output
2011-01-03 22:24:52 +00:00
Antoine Pitrou
c43ec08baf
Temporary debug output for intermittent failures in test_subprocess
2011-01-03 22:12:43 +00:00
Antoine Pitrou
95aaeee59a
Add a subprocess test of remapping standard file descriptors (issue #1187 ).
2011-01-03 21:15:48 +00:00
Gregory P. Smith
4d41968904
news for 6643
2011-01-03 21:09:23 +00:00
Gregory P. Smith
96c886ce96
issue6643 - Two locks held within the threading module on each thread instance
...
needed to be reinitialized after fork(). Adds tests to confirm that they are
and that a potential deadlock and crasher bug are fixed (platform dependant).
2011-01-03 21:06:12 +00:00
Antoine Pitrou
68530ac3c0
Mention --randseed in option list
2011-01-03 20:40:07 +00:00
Antoine Pitrou
3c4402f879
Issue #6293 : Have regrtest.py echo back sys.flags. This is done by default
...
in whole runs and enabled selectively using `--header` when running an
explicit list of tests. Original patch by Collin Winter.
2011-01-03 20:38:52 +00:00
Michael Foord
751ba4cfac
Update description of Tools/unicode
2011-01-03 19:13:02 +00:00
Antoine Pitrou
f3fcd9f163
Issue #7716 : Under Solaris, don't assume existence of /usr/xpg4/bin/grep in
...
the configure script but use $GREP instead. Patch by Fabian Groffen.
2011-01-03 18:53:50 +00:00
Antoine Pitrou
c9c83ba896
Issue #10806 , issue #9905 : Fix subprocess pipes when some of the standard
...
file descriptors (0, 1, 2) are closed in the parent process. Initial
patch by Ross Lagerwall.
2011-01-03 18:23:55 +00:00
Éric Araujo
63ebe1c309
Fix test_site for systems without unsetenv. Reported by Zsolt Cserna.
2011-01-03 17:51:11 +00:00
Michael Foord
32e1d8340c
Enable unittest.TestCase to be instantiated without providing a method name.
...
Changed unittestgui to show number of discovered tests in the status bar.
2011-01-03 17:00:11 +00:00