Antoine Pitrou
a6e81a23b3
test_pydoc needs to cleanup after itself
2011-07-15 22:32:25 +02:00
Antoine Pitrou
707f228b1e
Try harder to reap dangling threads in test.support.reap_threads().
2011-07-15 22:29:44 +02:00
Antoine Pitrou
428bc6c48f
Issue #12573 : Add resource checks for dangling Thread and Process objects.
2011-07-15 22:15:38 +02:00
Antoine Pitrou
c081c0c6a0
Issue #12573 : Add resource checks for dangling Thread and Process objects.
2011-07-15 22:12:24 +02:00
Antoine Pitrou
91fe8157fd
Merge
2011-07-15 21:19:27 +02:00
Antoine Pitrou
b8298a01e6
Merge
2011-07-15 21:19:02 +02:00
Antoine Pitrou
9b43b6e14e
Issue #11603 : Fix a crash when __str__ is rebound as __repr__.
...
Patch by Andreas Stührk.
2011-07-15 21:18:18 +02:00
Antoine Pitrou
ff35050493
Issue #11603 : Fix a crash when __str__ is rebound as __repr__.
...
Patch by Andreas Stührk.
2011-07-15 21:17:14 +02:00
Antoine Pitrou
8cdc40e3b0
Issue #11603 : Fix a crash when __str__ is rebound as __repr__.
...
Patch by Andreas Stührk.
2011-07-15 21:15:07 +02:00
Benjamin Peterson
58059197cc
merge heads
2011-07-15 14:11:23 -05:00
Benjamin Peterson
1a41d7d51d
merge heads
2011-07-15 14:10:59 -05:00
Benjamin Peterson
e92cd0ce98
merge 3.2 ( #11627 )
2011-07-15 14:10:35 -05:00
Benjamin Peterson
5afa03a72e
catch nasty exception classes with __new__ that doesn't return a exception ( closes #11627 )
...
Patch from Andreas Stührk.
2011-07-15 14:09:26 -05:00
Antoine Pitrou
8f629059db
Make sure to reap worker threads and processes at the end of test_concurrent_futures
2011-07-15 20:26:35 +02:00
Antoine Pitrou
9470ab43a9
Make sure to reap worker threads and processes at the end of test_concurrent_futures
2011-07-15 20:25:20 +02:00
Éric Araujo
af5bacf9bb
Always use repr for regrtest resources names
2011-07-15 17:50:15 +02:00
Éric Araujo
eb39294101
Silence 2to3 warnings in packaging tests
2011-07-15 17:49:20 +02:00
Éric Araujo
fe95848c16
Clear packaging.database caches in place
2011-07-15 17:47:46 +02:00
Victor Stinner
d33344a030
Add cgi.closelog() function to close the log file
2011-07-14 22:28:36 +02:00
Charles-François Natali
f64f9e9ec1
Merge - Issue #12502 : asyncore: fix polling loop with AF_UNIX sockets.
2011-07-14 20:00:49 +02:00
Charles-François Natali
1f0ccfa853
Merge - Issue #12502 : asyncore: fix polling loop with AF_UNIX sockets.
2011-07-14 19:57:35 +02:00
Charles-François Natali
e22813067e
Issue #12502 : asyncore: fix polling loop with AF_UNIX sockets.
2011-07-14 19:53:38 +02:00
Benjamin Peterson
b6ffa7980f
test that TestCase doesn't get cycles
2011-07-14 12:48:25 -05:00
Benjamin Peterson
31f4beb15e
add a contextmanager to disable the gc
2011-07-14 12:48:01 -05:00
Benjamin Peterson
c917494528
merge 3.2
2011-07-14 10:03:53 -05:00
Benjamin Peterson
eef80b6e70
this should be an identity test
2011-07-14 10:03:35 -05:00
Victor Stinner
bc18838972
(merge 3.2) Issue #12250 : test_socketserver uses a timeout of 60 seconds
...
instead of 20
test_shutdown() may fail on very slow buildbots like FreeBSD 6.4 just because
of the arbitrary timeout.
2011-07-14 15:36:16 +02:00
Ezio Melotti
e73d49d328
Merge with 3.2.
2011-07-14 15:57:12 +03:00
Victor Stinner
5702ae6f3f
Issue #12250 : test_socketserver uses a timeout of 60 seconds instead of 20
...
test_shutdown() may fail on very slow buildbots like FreeBSD 6.4 just because
of the arbitrary timeout.
2011-07-14 14:53:24 +02:00
Ezio Melotti
7ebb706133
Restore the global state of the log vars, so that test_cgi can be run twice without failures.
2011-07-14 15:18:57 +03:00
Benjamin Peterson
d77e2eaa40
merge 3.2
2011-07-13 23:11:14 -05:00
Benjamin Peterson
6e18e04273
carefully cleanup pointer cache after creating struct pointers
2011-07-13 23:09:30 -05:00
Vinay Sajip
bf9c021ddd
Closes #12536 : Unused logger removed from lib2to3.
2011-07-13 23:15:07 +01:00
Ned Deily
07b353716c
Issue #12549 : Correct test_platform to not fail when OS X returns 'x86_64'
...
as the processor type on some Mac systems.
2011-07-13 15:09:49 -07:00
Ned Deily
58e3350bd4
Issue #12549 : Correct test_platform to not fail when OS X returns 'x86_64'
...
as the processor type on some Mac systems. Also fix NameError in fallback
_mac_ver_gestalt function. And remove out-of-date URL in docs.
2011-07-13 15:07:04 -07:00
Victor Stinner
cb41cda8e3
Issue #12550 : regrtest displays the Python traceback on SIGALRM or SIGUSR1
2011-07-13 23:47:21 +02:00
Victor Stinner
a9a9dab042
Issue #12550 : Add chain optional argument to faulthandler.register()
...
Call the previous signal handler if chain is True.
2011-07-13 23:39:53 +02:00
Victor Stinner
d93da2b952
(merge 3.2) Close #4376 : ctypes now supports nested structures in a endian
...
different than the parent structure. Patch by Vlad Riscutia.
2011-07-13 21:45:16 +02:00
Victor Stinner
6636121950
Close #4376 : ctypes now supports nested structures in a endian different than
...
the parent structure. Patch by Vlad Riscutia.
2011-07-13 21:43:18 +02:00
Benjamin Peterson
0850638957
merge 3.2 ( #12544 )
2011-07-12 19:23:43 -05:00
Benjamin Peterson
34b2b263db
this can be done without a custom dict (also fixes #12544 )
2011-07-12 19:21:42 -05:00
Antoine Pitrou
093c8e4bf0
Issue #12149 : Update the method cache after a type's dictionnary gets
...
cleared by the garbage collector. This fixes a segfault when an instance
and its type get caught in a reference cycle, and the instance's
deallocator calls one of the methods on the type (e.g. when subclassing
IOBase).
Diagnosis and patch by Davide Rizzo.
2011-07-12 21:58:39 +02:00
Antoine Pitrou
84f1b1718d
Issue #12149 : Update the method cache after a type's dictionnary gets
...
cleared by the garbage collector. This fixes a segfault when an instance
and its type get caught in a reference cycle, and the instance's
deallocator calls one of the methods on the type (e.g. when subclassing
IOBase).
Diagnosis and patch by Davide Rizzo.
2011-07-12 21:57:15 +02:00
Georg Brandl
00ebeb540f
Merge 3.2.1 release clone into main repo.
2011-07-09 10:58:37 +02:00
Georg Brandl
cd0dc16fdc
Bump version to 3.2.1.
2011-07-09 08:56:21 +02:00
Antoine Pitrou
13d7db19f6
Skip network tests when getaddrinfo() returns EAI_AGAIN, meaning a temporary
...
failure in name resolution.
Should fix a buildbot failure.
2011-07-09 02:32:36 +02:00
Antoine Pitrou
4875c46538
Skip network tests when getaddrinfo() returns EAI_AGAIN, meaning a temporary
...
failure in name resolution.
Should fix a buildbot failure.
2011-07-09 02:31:24 +02:00
Antoine Pitrou
9163c473dc
Skip network tests when getaddrinfo() returns EAI_AGAIN, meaning a temporary
...
failure in name resolution.
Should fix a buildbot failure.
2011-07-09 02:31:24 +02:00
Antoine Pitrou
600012028e
Add comment
2011-07-09 01:03:46 +02:00
Antoine Pitrou
71a28a9174
Rebind locally the globals which can be looked up at shutdown
...
(to avoid the warnings seen on a buildbot)
2011-07-09 01:03:00 +02:00
Antoine Pitrou
4a183b47f3
Avoid failing in test_robotparser when mueblesmoraleda.com is flaky and
...
an overzealous DNS service (e.g. OpenDNS) redirects to a placeholder
Web site.
2011-07-08 19:44:55 +02:00
Antoine Pitrou
95531ea2f1
Avoid failing in test_robotparser when mueblesmoraleda.com is flaky and
...
an overzealous DNS service (e.g. OpenDNS) redirects to a placeholder
Web site.
2011-07-08 19:43:51 +02:00
Antoine Pitrou
88fcf1bcab
Avoid failing in test_urllibnet.test_bad_address when some overzealous
...
DNS service (e.g. OpenDNS) resolves a non-existent domain name. The test
is now skipped instead.
2011-07-08 19:22:31 +02:00
Antoine Pitrou
3aba49899c
Avoid failing in test_urllibnet.test_bad_address when some overzealous
...
DNS service (e.g. OpenDNS) resolves a non-existent domain name. The test
is now skipped instead.
2011-07-08 19:19:57 +02:00
Antoine Pitrou
72fff046a6
Avoid failing in test_urllibnet.test_bad_address when some overzealous
...
DNS service (e.g. OpenDNS) resolves a non-existent domain name. The test
is now skipped instead.
2011-07-08 19:19:57 +02:00
Antoine Pitrou
7128f95bd2
Issue #12440 : When testing whether some bits in SSLContext.options can be
...
reset, check the version of the OpenSSL headers Python was compiled against,
rather than the runtime version of the OpenSSL library.
2011-07-08 18:49:07 +02:00
Antoine Pitrou
b9ac25d1c3
Issue #12440 : When testing whether some bits in SSLContext.options can be
...
reset, check the version of the OpenSSL headers Python was compiled against,
rather than the runtime version of the OpenSSL library.
2011-07-08 18:47:06 +02:00
Éric Araujo
4468e55d4b
Close file handles in a timely manner in packaging.database ( #12504 ).
...
This fixes a bug with the remove (uninstall) feature on Windows. Patch
by Thomas Holmes.
2011-07-08 17:22:19 +02:00
Éric Araujo
ce5fe83878
Factor out code used by packaging commands for HTTP requests ( #12169 ).
...
We now have one function to prepare multipart POST requests, and we use
CRLF, as recommended by the HTTP spec (#10150 ). Initial patch by John
Edmonds.
2011-07-08 16:27:12 +02:00
Ned Deily
f6cbdc22be
Issue #8716 : Instead of relying on Aqua Tk exceptions to detect lack of
...
OS X window manager connection in tk tests, use OS X Application Services
API calls instead.
2011-07-05 19:09:37 -07:00
Victor Stinner
1848db891b
Issue #12493 : skip test_communicate_eintr() if signal.SIGALRM is missing
2011-07-05 14:49:46 +02:00
Victor Stinner
91e08772a6
Issue #12451 : pydoc: html_getfile() now uses tokenize.open() to support Python
...
scripts using a encoding different than UTF-8 (read the coding cookie of the
script).
2011-07-05 14:30:41 +02:00
Victor Stinner
2cfb6f3aa0
Issue #12493 : subprocess: communicate() handles EINTR
...
subprocess.Popen.communicate() now also handles EINTR errors if the process has
only one pipe.
2011-07-05 14:00:56 +02:00
Ned Deily
e2d519035f
Issue #12497 : Install test/data to prevent failures of the various codecmaps
...
tests.
2011-07-04 19:06:20 -07:00
Georg Brandl
bfd1edd155
Merge 3.2.1 release clone changes into main 3.2 branch after 3.2.1rc2 release.
2011-07-04 19:55:22 +02:00
Victor Stinner
e40b3aabfb
Issue #12469 : Run "wakeup" signal tests in subprocess to run the test in a
...
fresh process with only one thread and to not change signal handling of the
parent process.
2011-07-04 17:35:10 +02:00
Victor Stinner
4479841b83
Issue #12429 : Skip interrupted write tests on FreeBSD <= 7
...
On FreeBSD, the SIGALRM signal is sometimes received by the reader thread.
2011-07-04 11:48:17 +02:00
Victor Stinner
cd1aa0d5ea
Issue #12429 : Skip interrupted write tests on FreeBSD <= 7
...
On FreeBSD, the SIGALRM signal is sometimes received by the reader thread.
2011-07-04 11:48:17 +02:00
Ned Deily
4143535d86
Issue #8716 : Avoid crashes caused by Aqua Tk on OSX when attempting to run
...
test_tk or test_ttk_guionly under a username that is not currently logged
in to the console windowserver (as may be the case under buildbot or ssh).
2011-07-03 21:56:48 -07:00
Senthil Kumaran
9ebe08d2f6
Fix closes issue12471 - wrong TypeError message when '%i' format spec was used.
2011-07-03 21:03:16 -07:00
Senthil Kumaran
c8763b9d96
Fix closes issue issue12470 - check for utime for the skipUnless condition.
2011-07-03 18:21:38 -07:00
Senthil Kumaran
0c2dba5726
Fix closes issue issue12470 - check for utime for the skipUnless condition.
2011-07-03 18:21:38 -07:00
Victor Stinner
b1b25f0ffd
Issue #12467 : warnings: fix a race condition if a warning is emitted at
...
shutdown, if globals()['__file__'] is None.
2011-07-04 02:43:09 +02:00
Victor Stinner
8b0508ed4e
Issue #12467 : warnings: fix a race condition if a warning is emitted at
...
shutdown, if globals()['__file__'] is None.
2011-07-04 02:43:09 +02:00
Senthil Kumaran
80dffefcd9
Fix closes issue12438 - idlelib.PyShell's showformatwarning method was passing an incorrect arg.
2011-07-03 17:39:20 -07:00
Senthil Kumaran
aa90e7c573
Fix closes issue12438 - idlelib.PyShell's showformatwarning method was passing an incorrect arg.
2011-07-03 17:39:20 -07:00
Senthil Kumaran
7079240c4a
Fix closes issue12432 - remove the unused sys from glob.py
2011-07-03 17:21:05 -07:00
Victor Stinner
e975af62f2
Issue #12451 : pydoc: importfile() now opens the Python script in binary mode,
...
instead of text mode using the locale encoding, to avoid encoding issues.
2011-07-04 02:08:50 +02:00
Victor Stinner
6c47102982
Issue #12451 : runpy: run_path() now opens the Python script in binary mode,
...
instead of text mode using the locale encoding, to support other encodings than
UTF-8 (scripts using the coding cookie).
2011-07-04 01:45:39 +02:00
Victor Stinner
bbdc08ea6e
Issue #12451 : xml.dom.pulldom: parse() now opens files in binary mode instead
...
of the text mode (using the locale encoding) to avoid encoding issues.
2011-07-04 01:25:55 +02:00
Benjamin Peterson
ac91341333
never retain a generator's caller's exception state on the generator after a yield/return
...
This requires some trickery to properly save the exception state if the
generator creates its own exception state.
2011-07-03 16:25:11 -05:00
Benjamin Peterson
d2ed630243
merge heads
2011-07-03 13:44:56 -05:00
Benjamin Peterson
83195c3f0c
restore a generator's caller's exception state both on yield and (last) return
...
This prevents generator exception state from leaking into the caller.
Closes #12475 .
2011-07-03 13:44:00 -05:00
Georg Brandl
d4fa7ed8db
Bump to 3.2.1rc2.
2011-07-03 09:41:27 +02:00
Georg Brandl
fa76ceb3c8
Update pydoc topics.
2011-07-03 09:31:04 +02:00
Victor Stinner
2cded9c3f3
Issue #12016 : Multibyte CJK decoders now resynchronize faster
...
They only ignore the first byte of an invalid byte sequence.
For example, b'\xff\n'.decode('gb2312', 'replace') gives '\ufffd\n' instead of
'\ufffd'.
2011-07-08 01:45:13 +02:00
Vinay Sajip
0bec35d2d0
Closes #12391 : temporary files are now cleaned up.
2011-07-07 12:59:31 +01:00
Georg Brandl
cd9f1203a4
Revert 76452b892838 as per http://mail.python.org/pipermail/python-dev/2011-July/112243.html .
2011-07-06 07:31:38 +02:00
Ned Deily
8a3b988b8a
Issue #8716 : Instead of relying on Aqua Tk exceptions to detect lack of
...
OS X window manager connection in tk tests, use OS X Application Services
API calls instead.
2011-07-05 19:11:15 -07:00
Brian Curtin
692e26be46
Normalize whitespace for #11512 fix.
2011-07-05 19:16:37 -05:00
Brian Curtin
6a4ffd7295
Fix #11512 . Add an initial test suite for the cgitb, providing 75% coverage.
...
Patch by Robbie Clemons (robquad), produced at the PyCon 2011 sprints.
2011-07-05 19:14:16 -05:00
Victor Stinner
7f53a5027d
Issue #12459 : time.sleep() now raises a ValueError if the sleep length is
...
negative, instead of an infinite sleep on Windows or raising an IOError on
Linux for example, to have the same behaviour on all platforms.
2011-07-05 22:00:25 +02:00
Victor Stinner
5351a1f956
(merge 3.2) Issue #12493 : skip test_communicate_eintr() if signal.SIGALRM is missing
2011-07-05 14:50:08 +02:00
Victor Stinner
d7772bc4cb
(merge 3.2) Issue #12451 : pydoc: html_getfile() now uses tokenize.open() to
...
support Python scripts using a encoding different than UTF-8 (read the coding
cookie of the script).
2011-07-05 14:31:28 +02:00
Victor Stinner
5b1261d750
(merge 3.2) Issue #12493 : subprocess: communicate() handles EINTR
...
subprocess.Popen.communicate() now also handles EINTR errors if the process has
only one pipe.
2011-07-05 14:04:39 +02:00
Ned Deily
368ff10c4d
Issue #12497 : Install test/data to prevent failures of the various codecmaps
...
tests.
2011-07-04 19:11:14 -07:00
Victor Stinner
5dd470ef1d
Issue #12469 : fix signal order check of test_signal
...
When signals are unblocked, pending signal ared delivered in the reverse order
of their number (also on Linux, not only on FreeBSD 6).
Don't sort signals by their number if signals were not blocked (test_signum).
2011-07-05 01:32:06 +02:00
Victor Stinner
68757ac884
Issue #12469 : test_signal checks wakeup signals order, except on freebsd6
...
On FreeBSD 6, when signals are unblocked, FreeBSD 6 delivers signals in the
reverse order of their number.
2011-07-05 01:15:08 +02:00
Victor Stinner
87e78ce1c6
Issue #12469 : partial revert of 024827a9db64, freebsd6 thread initialization
...
* Don't create a thread at startup anymore to initialize the pthread library:
it changes the behaviour of many functions related to signal handling like
sigwait()
* Reenable test_sigtimedwait_poll() on FreeBSD 6
2011-07-04 22:53:49 +02:00
Victor Stinner
0a01f13af8
Issue #12469 : replace assertions by explicit if+raise
2011-07-04 18:06:35 +02:00