Ezio Melotti
f00bfa2019
#12341 : add coverage files/dirs to .hgignore. Patch by Sandro Tosi.
2011-06-25 12:36:38 +03:00
Raymond Hettinger
12fb2f41f0
Code simplification suggested by Sven Marnach.
2011-06-25 11:31:46 +02:00
Raymond Hettinger
5279fb99cb
Code simplification suggested by Sven Marnach.
2011-06-25 11:30:53 +02:00
Ross Lagerwall
1db37f3248
Merge with 3.2 (Issue #12404 ).
2011-06-25 10:11:44 +02:00
Ross Lagerwall
dbfb9b89db
Issue 12404: Remove C89 incompatible code from mmap module.
...
Patch by Akira Kitada.
2011-06-25 10:02:37 +02:00
Victor Stinner
e71db4450c
Issue #12392 : fix thread initialization on FreeBSD 6
...
On FreeBSD6, pthread_kill() doesn't work on the main thread before the creation
of the first thread. Create therefore a dummy thread (no-op) a startup to
initialize the pthread library.
Add also a test for this use case, test written by Charles-François Natali.
2011-06-24 20:52:27 +02:00
R David Murray
fcb17e13da
Merge #10206 : add test for previously fixed bug.
2011-06-24 13:28:08 -04:00
R David Murray
e697e3750f
#10206 : add test for previously fixed bug.
...
Patch by Francisco Martín Brugué.
2011-06-24 13:26:31 -04:00
Benjamin Peterson
e109c70860
give the names of missing positional or keyword-only arguments ( closes #12356 )
2011-06-24 09:37:26 -05:00
R David Murray
947d6b0444
merge #9921 : clarify os.path.join joining algorithm
2011-06-23 21:26:48 -04:00
R David Murray
24eb4bc5c9
#9921 : clarify os.path.join joining algorithm
...
The new wording is based on the comments in the code, which
match the actual behavior.
2011-06-23 21:26:13 -04:00
Victor Stinner
4c6330c1c2
(null merge 3.2 for issue #11223 ) python 3.3 has already a better fix
2011-06-23 14:22:59 +02:00
Victor Stinner
66f7d66174
Issue #11223 : skip also test_rlock_acquire_interruption() on FreeBSD6
2011-06-23 14:22:28 +02:00
Victor Stinner
d474380fad
(null merge 3.2 for issue #11223 ) python 3.3 has already a better fix
2011-06-23 11:59:15 +02:00
Victor Stinner
f25ae48dfd
Issue #11223 : skip test_lock_acquire_interruption() on FreeBSD6
...
Locks are implemented using a mutex and a condition variable of the pthread
library on FreeBSD6. POSIX condition variables cannot be interrupted by signals
(see pthread_cond_wait manual page).
2011-06-23 11:57:56 +02:00
R David Murray
3a420c752d
#10354 : remove last public mentions of 'template' and comment as private.
...
I didn't rename the variable because I can see no good reason
to break backward compatibility just to put an underscore in
the name.
2011-06-22 21:01:13 -04:00
Victor Stinner
8153b7a57a
(merge 3.2) Issue #12383 : skip test_empty_env() of subprocess on Windows
...
Cannot test an empty environment on Windows: Windows requires at least the
SYSTEMROOT environment variable to start Python.
2011-06-23 01:02:50 +02:00
Victor Stinner
62d511809d
Issue #12383 : skip test_empty_env() of subprocess on Windows
...
Cannot test an empty environment on Windows: Windows requires at least the
SYSTEMROOT environment variable to start Python.
2011-06-23 01:02:25 +02:00
Victor Stinner
4527365ee4
Issue #12363 : improve siginterrupt() tests
...
Add a basic synchronization code between the child and the parent processes:
the child writes "ready" to stdout.
2011-06-22 22:15:51 +02:00
Victor Stinner
c0a9f75fba
(merge 3.2) Issue #12383 : fix test_empty_env() of subprocess on Mac OS X
...
Mac OS X adds __CF_USER_TEXT_ENCODING variable to an empty environment. Fix
also the test on the Py_ENABLE_SHARED config varible: test that the variable is
present, don't check it's value.
2011-06-22 21:29:07 +02:00
Victor Stinner
237e5cb376
Issue #12383 : fix test_empty_env() of subprocess on Mac OS X
...
Mac OS X adds __CF_USER_TEXT_ENCODING variable to an empty environment. Fix
also the test on the Py_ENABLE_SHARED config varible: test that the variable is
present, don't check it's value.
2011-06-22 21:28:43 +02:00
R David Murray
749073af13
#1874 : detect invalid multipart CTE and report it as a defect.
2011-06-22 13:47:53 -04:00
Victor Stinner
11cc475be7
(merge 3.2) Issue #12383 : skip test_empty_env() if compiled is compiled in
...
shared mode
Try also to get more informations about the Mac OS X failure: display the keys
of the environment, instead of just the number of variables.
2011-06-21 21:59:51 +02:00
Victor Stinner
372309a551
Issue #12383 : skip test_empty_env() if compiled is compiled in shared mode
...
Try also to get more informations about the Mac OS X failure: display the keys
of the environment, instead of just the number of variables.
2011-06-21 21:59:06 +02:00
Victor Stinner
372b838db5
(merge 3.2) Close #12383 : Fix subprocess module with env={}: don't copy the
...
environment variables, start with an empty environment.
2011-06-21 17:24:21 +02:00
Victor Stinner
f1512a2967
Close #12383 : Fix subprocess module with env={}: don't copy the environment
...
variables, start with an empty environment.
2011-06-21 17:18:38 +02:00
Benjamin Peterson
28db0fd357
merge 3.2
2011-06-20 22:09:20 -05:00
Benjamin Peterson
b7149cad04
fix indentation
2011-06-20 22:09:13 -05:00
Benjamin Peterson
267ca6cb23
merge 3.2
2011-06-20 21:40:46 -05:00
Benjamin Peterson
66b371e000
merge heads
2011-06-20 21:40:34 -05:00
Benjamin Peterson
f63d615f8b
fix indentation
2011-06-20 21:40:19 -05:00
Benjamin Peterson
eabfb5b1b9
merge heads
2011-06-20 19:24:31 -05:00
Benjamin Peterson
0c1036270d
remove intrcheck.c, which hasn't been used for years
2011-06-20 19:22:34 -05:00
Victor Stinner
d628496323
Close #12363 : fix a race condition in siginterrupt() tests
...
The previous tests used time.sleep() to synchronize two processes. If the host
was too slow, the test could fail.
The new tests only use one process, but they use a subprocess to:
- have only one thread
- have a timeout on the blocking read (select cannot be used in the test,
select always fail with EINTR, the kernel doesn't restart it)
- not touch signal handling of the parent process
2011-06-20 23:28:09 +02:00
Victor Stinner
395dc58ee7
(merge 3.2) Issue #12285 : multiprocessing.Pool() raises a ValueError if the
...
number of processes if negative or null.
2011-06-20 17:54:03 +02:00
Victor Stinner
2fae27b735
Issue #12285 : multiprocessing.Pool() raises a ValueError if the number of
...
processes if negative or null.
2011-06-20 17:53:35 +02:00
Victor Stinner
fb25ba9b07
Close #12289 : Fix "is executable?" test in the CGI server
...
Use os.access(path, os.X_OK) instead of (os.stat(path).st_mode & 0o111 != 0),
and ignore the test on Windows.
2011-06-20 17:45:54 +02:00
Senthil Kumaran
54e647f215
merge heads
2011-06-20 07:37:59 -07:00
Senthil Kumaran
1dbb7591da
merge from 3.2 - Fix closes Issue12359 - Removing a confusing sentence from the previous change.
2011-06-20 07:33:25 -07:00
Senthil Kumaran
4707a998e4
Fix closes Issue12359 - Removing a confusing sentence from the previous change.
2011-06-20 07:30:34 -07:00
Victor Stinner
d417d01ec8
call_find_module() handles dup() failure: raise an OSError exception
2011-06-20 15:16:55 +02:00
Victor Stinner
925ef39949
find_module_path_list() fails if _Py_fopen() failed and raised an exception
...
(UnicodeEncodeError).
2011-06-20 15:01:10 +02:00
Victor Stinner
7edb5dfcbc
Issue #6697 : _lsprof: normalizeUserObj() doesn't encode/decode (UTF-8) the
...
module name anymore, only work on unicode strings. Therefore it doesn't
truncate module names with embedded NUL characters, or fail if the module name
contains surrogate characters (UTF-8 encoder fails on a surrogate character).
Patch written by Alexander Belopolsky.
2011-06-20 14:59:53 +02:00
Victor Stinner
99563b1df8
calculate_path() decodes the PYTHONPATH environment variable from the locale
...
encoding using _Py_char2wchar() instead of mbstowcs() to store undecodable
bytes as surrogates characters (PEP 383) instead of ignoring silently
the PYTHONPATH variable.
2011-06-20 14:45:54 +02:00
Senthil Kumaran
d6b3840e7d
merge from 3.2
2011-06-19 18:23:17 -07:00
Senthil Kumaran
656df5ec3e
Fix closes issue 12360 - correcting parameter names in asyncore documentation.
2011-06-19 18:22:33 -07:00
Benjamin Peterson
52810a57f3
merge heads
2011-06-19 19:55:19 -05:00
Benjamin Peterson
e7c15fa184
bump magic for super closure change
2011-06-19 19:54:45 -05:00
Senthil Kumaran
14830dc5ac
merge heads
2011-06-19 17:50:53 -07:00
Benjamin Peterson
4092e68396
merge heads
2011-06-19 19:48:38 -05:00