Antoine Pitrou
f87289bb58
Issue #15229 : An OSError subclass whose __init__ doesn't call back
...
OSError.__init__ could produce incomplete instances, leading to crashes
when calling str() on them.
2012-06-30 23:37:47 +02:00
doko@ubuntu.com
7e6c2e2cc4
- Issue #14330 : For cross builds, don't use host python, use host search paths
...
for host compiler.
Add NEWS entry, rename _PROJECT_BASE to _PYTHON_PROJECT_BASE.
2012-06-30 22:35:00 +02:00
doko@ubuntu.com
1abe1c5fe1
- Issue #14330 : For cross builds, don't use host python, use host search paths
...
for host compiler.
2012-06-30 20:42:45 +02:00
Antoine Pitrou
f93b705bd0
Issue #9239 : add tests for modifying zipfile comments in append mode.
2012-06-30 17:32:41 +02:00
Antoine Pitrou
c399185fcc
Issue #9239 : add tests for modifying zipfile comments in append mode.
2012-06-30 17:31:37 +02:00
Antoine Pitrou
24ef3e967f
Issue #15225 : improve error message when hmac is passed a wrong key type.
...
Patch by Marc Abramowitz.
2012-06-30 17:27:56 +02:00
Nadeem Vawda
83a4dd3fdf
Update GzipFile docstring to mention gzip.open()'s new text-mode support.
2012-06-30 13:34:28 +02:00
Senthil Kumaran
a1632e65fa
urllib.parse cleanup. rename keywords used as variables
2012-06-29 11:08:51 -07:00
Senthil Kumaran
eda29f4718
urllib.parse cleanup. rename keywords used as variables
2012-06-29 11:08:20 -07:00
Antoine Pitrou
a9effcd802
Better diagnose test failure
2012-06-29 19:40:54 +02:00
Antoine Pitrou
b8b6a68baa
Better diagnose test failure
2012-06-29 19:40:35 +02:00
Petri Lehtinen
25652884b4
#5346 : Preserve permissions of mbox, MMDF and Babyl mailbox files on flush()
2012-06-29 15:12:54 +03:00
Petri Lehtinen
5b5619f717
#5346 : Preserve permissions of mbox, MMDF and Babyl mailbox files on flush()
2012-06-29 15:10:41 +03:00
Petri Lehtinen
31a78c3d65
#9559 : Don't call _pre_mailbox_hook more than once
2012-06-29 13:51:50 +03:00
Petri Lehtinen
b6ee3d6b7a
#9559 : Don't call _pre_mailbox_hook more than once
2012-06-29 13:50:21 +03:00
Hynek Schlawack
d0f6e0a6e6
Check for all used fd-based functions in shutil.rmdir, closes #15218
2012-06-29 08:28:20 +02:00
Antoine Pitrou
802d669044
Issue #5067 : improve some json error messages.
...
Patch by Serhiy Storchaka.
2012-06-29 01:59:54 +02:00
Antoine Pitrou
2d24e94bbe
Issue #5067 : improve some json error messages.
...
Patch by Serhiy Storchaka.
2012-06-29 01:58:26 +02:00
Amaury Forgeot d'Arc
3a3dc17fc9
Port tests from Issue #15219 , and verify we don't have a reference leak.
2012-06-29 01:53:13 +02:00
Antoine Pitrou
c92448beba
Issue #10571 : Fix the "--sign" option of distutils' upload command.
...
Patch by Jakub Wilk.
2012-06-29 01:06:51 +02:00
Antoine Pitrou
24319ac407
Issue #10571 : Fix the "--sign" option of distutils' upload command.
...
Patch by Jakub Wilk.
2012-06-29 01:05:26 +02:00
Hynek Schlawack
9f558ccefd
#4489 : Use dir_fd in rmdir in _rmtree_safe_fd()
...
Now that rmdir supports dir_fd, we also use it. Attackers can't even delete
empty directories anymore.
2012-06-28 15:30:47 +02:00
Petri Lehtinen
dde8cb0899
#9559 : Append data to single-file mailbox files if messages are only added
...
If messages were only added, a new file is no longer created and
renamed over the old file when flush() is called on an mbox, MMDF or
Babyl mailbox.
2012-06-28 13:56:14 +03:00
Petri Lehtinen
f29435f9f0
#9559 : Append data to single-file mailbox files if messages are only added
...
If messages were only added, a new file is no longer created and
renamed over the old file when flush() is called on an mbox, MMDF or
Babyl mailbox.
2012-06-28 13:53:23 +03:00
Eric V. Smith
abb755db11
Merge.
2012-06-28 06:15:30 -04:00
Eric V. Smith
b10951549b
Use assertIsNone. Thanks Terry Reedy.
2012-06-28 06:15:01 -04:00
Hynek Schlawack
a75cd1ce73
#4489 : Don't follow ever symlinks in rmtree
...
Also added several regression tests.
2012-06-28 12:07:29 +02:00
Antoine Pitrou
8afc243a76
Avoid using scrdir, it's broken.
2012-06-28 01:20:26 +02:00
Neil Schemenauer
76b931b133
Fix bug in test_tools that prevented building is separate directory.
...
Use 'srcdir' from sysconfig instead of 'projectbase' to build a
path to the Tools directory. 'projectbase' is the path of the build
directory, not the source directory.
2012-06-27 15:58:37 -06:00
Eric V. Smith
faae3adbb9
Changed importlib tests to use assertIs, assertIsInstance, etc., instead of just assertTrue.
2012-06-27 15:26:26 -04:00
David Malcolm
8d37ffa563
Issue #12605 : Show information on more C frames within gdb backtraces
...
The gdb hooks for debugging CPython (within Tools/gdb) have
been enhanced to show information on more C frames relevant to CPython within
the "py-bt" and "py-bt-full" commands:
* C frames that are waiting on the GIL
* C frames that are garbage-collecting
* C frames that are due to the invocation of a PyCFunction
2012-06-27 14:15:34 -04:00
Antoine Pitrou
67a7b06008
Flush stdout and stderr when running tests in parallel
...
(helps getting results in real-time when stdio is transmitted over a pipe or socket)
2012-06-27 17:41:33 +02:00
Antoine Pitrou
8237258e09
Flush stdout and stderr when running tests in parallel
...
(helps getting results in real-time when stdio is transmitted over a pipe or socket)
2012-06-27 17:41:07 +02:00
Christian Heimes
ab47577993
white space cleanup
2012-06-27 15:37:47 +02:00
Christian Heimes
afa2973d7a
Issue 10924: Fixed mksalt() to use a RNG that is suitable for cryptographic purpose
2012-06-27 15:36:46 +02:00
Antoine Pitrou
9facaf4f65
Issue #15079 : make a test applicable to both C and Python versions of the pickle module.
...
Patch by Stefan Mihaila.
2012-06-26 23:05:27 +02:00
Antoine Pitrou
79035bd71f
Issue #15079 : make a test applicable to both C and Python versions of the pickle module.
...
Patch by Stefan Mihaila.
2012-06-26 23:04:48 +02:00
David Malcolm
b83719287d
Issue #14443 : ensure that brp-python-bytecompile is invoked with the correct
...
python executable
The __os_install_macro defines some post-processing activities during an rpm
build; one of the scripts it calls is brp-python-bytecompile, which can take
an argument: the python executable with which to byte-compile .py files in the
package payload.
In some older versions of rpm (e.g. in RHEL 6), this invocation doesn't pass
in an argument, and brp-python-bytecompile defaults to using /usr/bin/python,
which can lead to the .py files being byte-compiled for the wrong version of
python. This has been fixed in later versions of rpm by passing in
%{__python} as an argument to brp-python-bytecompile.
Workaround this by detecting if __os_install_post has a 0-argument invocation
of brp-python-bytecompile, and if so generating an equivalent macro that has
the argument, and explicitly provide the new definition within the specfile.
2012-06-26 14:06:23 -04:00
Georg Brandl
d08cec6d62
Bump version to 3.3.0b1.
2012-06-26 09:43:40 +02:00
Georg Brandl
969288e488
Use ValueError, not RuntimeError for a utime flag combination illegal on some systems.
2012-06-26 09:25:44 +02:00
Georg Brandl
3f81ba88ae
Update suspicious ignore file and pydoc topics.
2012-06-26 09:12:26 +02:00
Larry Hastings
5b2f9c0aff
Issue #15817 : Bugfix: remove temporary directories test_shutil was leaving
...
behind.
2012-06-25 23:50:01 -07:00
Vinay Sajip
a57a8e072c
Closes #15179 : Merged fix from 3.2.
2012-06-25 23:20:27 +01:00
Vinay Sajip
3e6d71d336
Issue #15179 : Closed socket on connection failure. Thanks to Kazutaka Morita for the patch.
2012-06-25 23:18:45 +01:00
David Malcolm
555bfc7ed0
Issue #14443 : ensure that brp-python-bytecompile is invoked with the correct
...
python executable
The __os_install_macro defines some post-processing activities during an rpm
build; one of the scripts it calls is brp-python-bytecompile, which can take
an argument: the python executable with which to byte-compile .py files in the
package payload.
In some older versions of rpm (e.g. in RHEL 6), this invocation doesn't pass
in an argument, and brp-python-bytecompile defaults to using /usr/bin/python,
which can lead to the .py files being byte-compiled for the wrong version of
python. This has been fixed in later versions of rpm by passing in
%{__python} as an argument to brp-python-bytecompile.
Workaround this by detecting if __os_install_post has a 0-argument invocation
of brp-python-bytecompile, and if so generating an equivalent macro that has
the argument, and explicitly provide the new definition within the specfile.
2012-06-25 15:52:24 -04:00
Antoine Pitrou
1dd75a64aa
Backport test_nntplib fixes from default.
2012-06-25 18:08:54 +02:00
Larry Hastings
c48fe98a7c
Issue #15177 : Added dir_fd parameter to os.fwalk().
2012-06-25 04:49:05 -07:00
Jesus Cea
2a193a818a
Skip test in freebsd entirely - Kernel bug in freebsd7/8/9 - #10142 : Support for SEEK_HOLE/SEEK_DATA
2012-06-25 13:45:38 +02:00
Larry Hastings
fdaea06d3c
Issue #15176 : Clarified behavior, documentation, and implementation
...
of os.listdir().
2012-06-25 04:42:23 -07:00
Hynek Schlawack
3b52778c74
#4489 Make fd based rmtree work on bytes
2012-06-25 13:27:31 +02:00