Commit graph

7185 commits

Author SHA1 Message Date
Antoine Pitrou
ca023cab4d Issue #1677694: Refactor and improve test_timeout. Original patch by
Björn Lindqvist.
2011-01-06 09:05:22 +00:00
Raymond Hettinger
7beae8a0d5 Issue 10825: Minor updates to the test suite. 2011-01-06 05:34:17 +00:00
Victor Stinner
457ab068a3 test_atexit: fix code saving/restoring stdout and stderr
That's why I prefer a single instruction per line :-)
2011-01-05 23:47:00 +00:00
Victor Stinner
73efd621fb test_imaplib: reap_server() closes the server when done
Fix a ResourceWarning(unclosed socket). Patch written by Nadeem Vawda.
2011-01-05 23:01:38 +00:00
Alexander Belopolsky
a686725859 - time.accept2dyear = True is now equivalent to time.accept2dyear = 1
- removed unnecessary struct_time to tuple conversion
- added more unit tests
(See issue #10827 for discussion.)
2011-01-05 23:00:47 +00:00
Georg Brandl
be41a48fb8 On Py3k, -tt and -3 are no-op and unsupported respectively. 2011-01-05 21:47:47 +00:00
Antoine Pitrou
600232b562 Issue #7995: When calling accept() on a socket with a timeout, the returned
socket is now always non-blocking, regardless of the operating system.
2011-01-05 21:03:42 +00:00
Raymond Hettinger
7d967712b8 Update tests and whatsnew for the 'quiet' flag 2011-01-05 20:24:08 +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
Victor Stinner
b996f740f2 test_time: assertEquals => assertEqual 2011-01-05 03:58:54 +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
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
Georg Brandl
3fb97ae0f7 Fix exception catching. 2011-01-04 17:27:13 +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
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
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
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
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
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
Victor Stinner
faa8c13ef4 test_subprocess: close pipes at the end of test_pipe_cloexec_real_tools() 2011-01-03 16:36:00 +00:00
Victor Stinner
1d5eb3425b test_socket: use context managers to close directly the socket
Fix ResourceWarning(unclosed socket) warnings. Patch written by Nadeem Vawda.
2011-01-03 14:30:46 +00:00
Victor Stinner
a935e8ffc6 test_xmlrpc: close the transport when done
Fix a ResourceWarning(unclosed socket). Patch written by Nadeem Vawda.
2011-01-03 14:30:44 +00:00
Victor Stinner
5c85e3f390 test_timeout: move testRecvfromTimeout() to a UDP-specific test case
Fix a ResourceWarning(unclosed socket).
2011-01-03 14:30:41 +00:00
Victor Stinner
109761ba07 test_sockserver: close servers when done 2011-01-03 14:30:39 +00:00
Brian Quinlan
1d1df8257f Removes the 'Call' class which is used to control execution order and is unreliable on Windows 2011-01-03 02:56:39 +00:00
Raymond Hettinger
426e052a4f Make C helper function more closely match the pure python version, and add tests. 2011-01-03 02:12:02 +00:00
Martin v. Löwis
23eaa70057 Skip hanging test. 2011-01-03 00:19:59 +00:00
Amaury Forgeot d'Arc
a251a853c7 #8278: In the Windows implementation of stat() and utime(),
use time_t instead of int.  This gives support for dates after 2038,
at least when compiled with VS2003 or later, where time_t is 64bit.
2011-01-03 00:19:11 +00:00
Martin v. Löwis
9f6d48ba4e Issue #10798: Reject supporting concurrent.futures if the system has
too few POSIX semaphores.
2011-01-03 00:07:01 +00:00
Georg Brandl
e10608cf5d #8013 follow-up:
* In asctime and ctime, properly remove the newline if the year has more than four digits
* Consistent error message for both functions
* Fix the test comments and add a check for the removed newline
2011-01-02 22:33:43 +00:00
Alexander Belopolsky
3e913c9ecf Issue #8013: Fixed test 2011-01-02 22:16:10 +00:00
Alexander Belopolsky
e2dc082294 Issue #8013: Fixed time.asctime segfault when OS's asctime fails 2011-01-02 20:48:22 +00:00
Antoine Pitrou
d8f37ad196 Relax test condition a lot 2011-01-02 16:16:09 +00:00
Raymond Hettinger
345c49b16b Fix OrderedDic.pop() to work for subclasses that define __missing__(). 2011-01-01 23:51:55 +00:00
Raymond Hettinger
32062e9be7 Make it easier to extend OrderedDict without breaking it. 2011-01-01 22:38:00 +00:00
Georg Brandl
04480a8ae5 #10801: do not actually extract, just open() the files in the test zipfile. 2011-01-01 10:42:31 +00:00