Victor Stinner
90ef747e04
Close #13119 : use "\r\n" newline for sys.stdout/err on Windows
...
sys.stdout and sys.stderr are now using "\r\n" newline on Windows, as Python 2.
2012-08-04 01:37:32 +02:00
Jesus Cea
676e73b3fb
#15512 : Remove remnants of debugging code
2012-08-03 15:49:14 +02:00
Jesus Cea
16e2fca47e
Closes #15469 : Correct __sizeof__ support for deque
2012-08-03 14:49:42 +02:00
Jesus Cea
e9c5318967
Closes #15512 : Correct __sizeof__ support for parser
2012-08-03 14:28:37 +02:00
Martin v. Löwis
4c1730db7c
Issue #8847 : Disable COMDAT folding in Windows PGO builds.
...
Analysis by Victor Stinner. Patch by Stefan Krah.
2012-08-01 10:32:11 +02:00
Andrew Svetlov
06c5c6d694
Issue #9803 : Don't close IDLE on saving if breakpoint is open.
...
Patch by Roger Serwy.
2012-07-31 19:48:00 +03:00
Andrew Svetlov
1fb0e3f3a2
Issue #12288 : Consider '0' and '0.0' as valid initialvalue for tkinter SimpleDialog.
2012-07-30 19:59:53 +03:00
Ned Deily
c556c64405
Issue #14018 : Update the OS X IDLE Tcl/Tk warning check to include
...
the Apple-supplied Tck/Tk versions shipped with OS X 10.7 and 10.8.
They are not as buggy as the 10.6 version but can still easily crash.
2012-07-30 03:31:21 -07:00
Antoine Pitrou
8f328d0c1d
Issue #15489 : Add a __sizeof__ implementation for BytesIO objects.
...
Patch by Serhiy Storchaka.
2012-07-30 00:01:06 +02:00
Antoine Pitrou
10f0c50a0b
Issue #15487 : Add a __sizeof__ implementation for buffered I/O objects.
...
Patch by Serhiy Storchaka.
2012-07-29 19:02:46 +02:00
Martin v. Löwis
33f799725c
Issue #15467 : Move helpers for __sizeof__ tests into test_support.
...
Patch by Serhiy Storchaka.
2012-07-29 16:33:05 +02:00
Meador Inge
90bc2dbcce
Issue #15402 : Simplify Struct.__sizeof__ and make tests more precise.
2012-07-28 22:16:39 -05:00
Richard Oudkerk
4887b1c0e7
Issue #6056 : Make multiprocessing use setblocking(True) on the sockets it uses.
...
Original patch by J Derek Wilson.
2012-07-27 14:06:11 +01:00
Antoine Pitrou
09f2e6f902
Issue #15320 : Make iterating the list of tests thread-safe when running tests in multiprocess mode.
...
Patch by Chris Jerdonek.
2012-07-26 00:45:19 +02:00
Martin v. Löwis
30d5e6c13f
Issue #7163 : Propagate return value of sys.stdout.write.
...
Patch by Roger Serwy.
2012-07-25 11:32:26 +02:00
Martin v. Löwis
c882b7c51a
Issue #15318 : Prevent writing to sys.stdin.
...
Patch by Roger Serwy and myself.
2012-07-25 10:47:20 +02:00
Jesus Cea
189fdf187b
Better test for Issue #15402 : Add a __sizeof__ method to struct.Struct
2012-07-23 18:15:33 +02:00
Meador Inge
b14d8c9bcf
Issue #15402 : Add a __sizeof__ method to struct.Struct.
...
Initial patch by Serhiy Storchaka.
2012-07-23 10:01:29 -05:00
R David Murray
6a31bc6d81
#15232 : correctly mangle From lines in MIME preamble and epilogue
2012-07-22 21:47:53 -04:00
Gregory P. Smith
76c28f7ce2
Consistently raise a TypeError when a non str is passed to hashlib.new
...
regardless of which of the two implementations of new is used.
2012-07-21 21:19:53 -07:00
R David Murray
00528e8fec
#13922 : argparse no longer incorrectly strips '--' after the first one.
...
Patch by Jeff Knupp.
2012-07-21 22:48:35 -04:00
R David Murray
b94082a71b
#12353 : argparse now correctly handles null argument values.
...
Patch by Torsten Landschoff.
2012-07-21 22:20:11 -04:00
R David Murray
15cd9a0be4
#14391 : clarify docstring discussion of Action's 'type' argument's value.
2012-07-21 17:04:25 -04:00
R David Murray
e3de175a5e
#15342 : Add clarifying sentence to posixpath.join docstring.
...
This sentence appears as a clarifying note in the HTML docs, and seems
worth having in the docstring since it covers a very common use case
that isn't otherwise obvious. Thanks to Yongzhi Pan for the suggestion.
2012-07-21 14:33:56 -04:00
Florent Xicluna
6e571d699f
Fix test_pprint random dict ordering.
2012-07-21 12:44:20 +02:00
Florent Xicluna
d6da90f93d
Issues #10017 and #14998 : Fix TypeError using pprint on dictionaries with unorderable key.
2012-07-21 11:17:38 +02:00
Antoine Pitrou
b4bbee25b1
Issue #14579 : Fix CVE-2012-2135: vulnerability in the utf-16 decoder after error handling.
...
Patch by Serhiy Storchaka.
2012-07-21 00:45:14 +02:00
Meador Inge
ca9652ea5d
Issue #15406 : Fix deprecation warning in ctypes test_bitfields.py
...
Patch by Flávio Ribeiro.
2012-07-20 12:48:34 -05:00
Meador Inge
60c2266afe
Issue #6493 : Fix handling of c_uint32 bitfields with width of 32 on Windows.
2012-07-19 00:01:22 -05:00
Hynek Schlawack
0b350c6b3e
Use posixpath.join() explicitely in posixpath.join() test
...
Used os.path.join before which has different semantics on Windows.
2012-07-17 14:28:44 +02:00
Hynek Schlawack
c5a4566922
#15377 : Make posixpath.join() more strict when checking for str/bytes mix
...
Based on a patch by Nick Coghlan.
2012-07-17 13:05:43 +02:00
Nick Coghlan
eb3e62f1c8
Issue #15230 : Attempt to make the OS X buildbots happy by resolving the tmp dir symlink in the test suite
2012-07-17 20:42:39 +10:00
Hynek Schlawack
7cdc2bdd0d
Fix context manager use in posixpath.join() tests
...
The asserts were useless (and buggy).
2012-07-17 10:48:19 +02:00
Gregory P. Smith
954d46b2cc
one more test fix for systems without select.poll. tested by deleting
...
select.poll before running. works both ways (finally). this should fix
the windows build.
2012-07-16 15:48:30 -07:00
Gregory P. Smith
ac14aa5187
Fix unchecked select.poll reference in setUp and tearDown for
...
platforms that don't have it.
2012-07-16 13:38:45 -07:00
Gregory P. Smith
5bcd005a0b
Fix the with_poll tests for platforms without poll. missing import.
2012-07-16 13:34:50 -07:00
Gregory P. Smith
dad5711677
Fixes Issue #14635 : telnetlib will use poll() rather than select() when possible
...
to avoid failing due to the select() file descriptor limit.
2012-07-15 23:42:26 -07:00
Hynek Schlawack
4774946c3b
#15180 : Clarify posixpath.join() error message when mixing str & bytes
2012-07-15 16:21:30 +02:00
Nick Coghlan
761bb11374
Close #15230 : runpy.run_path now sets __package__ correctly. Also refactored the runpy tests to use a more systematic approach
2012-07-14 23:59:22 +10:00
Antoine Pitrou
2bb3021837
Try other approach to fix issue #15334 .
2012-07-13 22:46:41 +02:00
Antoine Pitrou
f0b1baf362
Issue #15334 : skip test_dynamic_key when run in non-interactive mode.
...
Patch by Jeremy Kloth.
2012-07-13 21:08:41 +02:00
Antoine Pitrou
68f4247b65
Issue #15338 : skip test_UNC_path when the current user doesn't have enough permissions to access the path.
2012-07-13 20:54:42 +02:00
Antoine Pitrou
282083d5f4
Issue #15300 : Ensure the temporary test working directories are in the same parent folder when running tests in multiprocess mode from a Python build.
...
Patch by Chris Jerdonek.
2012-07-11 19:19:14 +02:00
Martin v. Löwis
67097fd592
Use _RPCFile.write properly.
2012-07-11 09:17:15 +02:00
Martin v. Löwis
c27616580d
Don't use TextIOBase implementations in _RPCFile.
2012-07-11 08:48:34 +02:00
Martin v. Löwis
8a75bed317
Issue #15319 : Revert wrapping of sys.stdin. Patch by Serhiy Storchaka.
2012-07-11 08:29:03 +02:00
Antoine Pitrou
59b9a7bc61
Backport test for nested namespace packages.
2012-07-09 21:23:58 +02:00
Martin v. Löwis
1d0f6dd7db
normalize whitespace
2012-07-09 20:52:40 +02:00
Martin v. Löwis
9ae3f7a189
Issue #13532 : Check that arguments to sys.stdout.write are strings.
2012-07-09 20:46:11 +02:00
Terry Jan Reedy
44dea9d03f
Issue 12510: Delete actual first param name for all methods; revise tests.
2012-07-09 00:13:21 -04:00
Senthil Kumaran
168456df11
revert the changes done for issue14826 - quoting witin Request is not desirable.
2012-07-08 17:47:25 -07:00
Senthil Kumaran
45ce4dc73e
issue 14826 - Address the buildbot failure ( explanation msg164973)
2012-07-08 02:08:48 -07:00
Senthil Kumaran
b7451cecad
Fix issue14826 - make urllib.request.Request quoted url consistent with URLOpener open method.
...
Patch contributed by Stephen Thorne.
2012-07-07 17:11:44 -07:00
Florent Xicluna
11f0b41e9d
Issue #14990 : tokenize: correctly fail with SyntaxError on invalid encoding declaration.
2012-07-07 12:13:35 +02:00
Antoine Pitrou
9235b254dc
Issue #15247 : FileIO now raises an error when given a file descriptor pointing to a directory.
2012-07-06 18:48:24 +02:00
Senthil Kumaran
f01a337950
Fix issue # 15033 - Return the proper exitcode for failure when modules are invoked using -m switch. Patch contributed by Jeff Knupp
2012-07-04 19:28:16 -07:00
Antoine Pitrou
c399185fcc
Issue #9239 : add tests for modifying zipfile comments in append mode.
2012-06-30 17:31:37 +02:00
Senthil Kumaran
eda29f4718
urllib.parse cleanup. rename keywords used as variables
2012-06-29 11:08:20 -07:00
Antoine Pitrou
b8b6a68baa
Better diagnose test failure
2012-06-29 19:40:35 +02: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
b6ee3d6b7a
#9559 : Don't call _pre_mailbox_hook more than once
2012-06-29 13:50:21 +03:00
Antoine Pitrou
2d24e94bbe
Issue #5067 : improve some json error messages.
...
Patch by Serhiy Storchaka.
2012-06-29 01:58:26 +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
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
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
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
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
Antoine Pitrou
1dd75a64aa
Backport test_nntplib fixes from default.
2012-06-25 18:08:54 +02:00
Gregory P. Smith
b5ba203709
Backout change e8f44ebacda7052267318cecf5b6f128d35add17. Reverting the test
...
to using signal.alarm(1) instead of signal.setitimer(signal.ITIMER_REAL, 0.1).
This is an attempt to see if this change is what caused the ubuntu arm buildbot
to hang in test_io's test_interrupted_write_retry_text.
Discussion in Issue #12268 .
2012-06-25 01:13:32 -07:00
Georg Brandl
26af3b223f
Refer test_xmlrpc_net to the new buildbot URL at buildbot.python.org.
2012-06-24 20:06:54 +02:00
Georg Brandl
496660c56b
Partial backport of 612f34e31270: fix spacing error in exception message.
2012-06-24 20:01:05 +02:00
Gregory P. Smith
5135992164
Fixes issue #12268 : File readline, readlines and read() or readall() methods
...
no longer lose data when an underlying read system call is interrupted.
IOError is no longer raised due to a read system call returning EINTR
from within these methods.
2012-06-23 23:55:39 -07:00
Gregory P. Smith
8150492f11
Speed up test_io by >2x by reducing the sleep time using setitimer instead of
...
alarm for the signal tests.
2012-06-23 23:46:37 -07:00
Alexander Belopolsky
a07548e97b
Issue #14653 : email.utils.mktime_tz() no longer relies on system
...
mktime() when timezone offest is supplied.
2012-06-21 20:34:09 -04:00
Hynek Schlawack
9ed8b4e4ca
#10053 : Don't close FDs when FileIO.__init__ fails
...
Loosely based on the work by Hirokazu Yamamoto.
2012-06-21 20:20:25 +02:00
Nadeem Vawda
103e8113e4
Fix GzipFile's handling of filenames given as bytes objects.
2012-06-20 01:35:22 +02:00
Richard Oudkerk
f29ec4b0c8
Issue #15101 : Make pool finalizer avoid joining current thread.
2012-06-18 15:54:57 +01:00
R David Murray
3ac8c780f4
Update out of date docstring.
2012-06-17 15:26:35 -04:00
Nick Coghlan
14d99a1491
Ignore X-Antivirus headers in test_nntplib
2012-06-17 21:27:18 +10:00
Nick Coghlan
e6ef462243
Issue #15095 : Use better assertions in test_imaplib
2012-06-17 21:10:21 +10:00
Nick Coghlan
be4e4b5691
Issue #15043 : skip test_gdb if the custom hooks can't be loaded
2012-06-17 18:57:20 +10:00
Petri Lehtinen
02653f1b11
#15036 : Make a repeated changes and flushes work with single-file mailboxes
2012-06-15 20:59:31 +03:00
Martin v. Löwis
993fe3f035
Issue #14937 : Fix typo. Patch by Roger Serwy.
2012-06-14 15:37:21 +02:00
Terry Jan Reedy
2a2ce4f673
Issue #12510 : Revise and triple # of calltip tests, with an eye to unittest
...
use. Make the get_entity 'method' a module function as it did not use 'self'.
Delete buggy _find_constructor function that is not needed, at least in 3.x.
Revise get_argspec so all tests pass. Add and fix NEWS entries.
2012-06-07 19:41:04 -04:00
Richard Oudkerk
29471de459
Issue #13854 : Properly handle non-integer, non-string arg to SystemExit
...
Previously multiprocessing only expected int or str. It also wrongly
used an exit code of 1 when the argument was a string instead of zero.
2012-06-06 19:04:57 +01:00
Richard Oudkerk
e41682b994
Issue #12157 : pool.map() does not handle empty iterable correctly
...
Initial patch by mouad
2012-06-06 19:04:57 +01:00
Gregory P. Smith
2d7d56abf8
Revert the modification of e.strerror in 3.2 as that kind of change could
...
break someone's over specified test that depends on the exact error message.
2012-06-03 14:39:26 -07:00
Gregory P. Smith
a81c856436
Fixes Issue #14992 : os.makedirs(path, exist_ok=True) would raise an OSError
...
when the path existed and had the S_ISGID mode bit set when it was not
explicitly asked for. This is no longer an exception as mkdir cannot control
if the OS sets that bit for it or not.
2012-06-03 14:30:44 -07:00
Martin v. Löwis
9f44a66abc
PEP 3131: support non-ASCII characters in auto-completion of identifiers.
2012-06-03 12:32:42 +02:00
Martin v. Löwis
97aa21b46a
Do not try to insert control characters.
2012-06-03 12:26:09 +02:00
Martin v. Löwis
862d13a30f
Issue #14937 : Perform auto-completion of filenames in strings even for non-ASCII filenames.
2012-06-03 11:55:32 +02:00
Terry Jan Reedy
e606e238ab
Issue 12510: Expand 2 bare excepts. Improve comments. Change deceptive name
...
'name' to 'expression' as the latter is what the string actually represents.
The bug in this issue was only catching NameError and AttributeError when
evaluating an expression that was not necessarily a name.
2012-06-03 00:27:54 -04:00
Terry Jan Reedy
a948c79ad4
Issue 10365: Add and replace comments; condense defaulted attribute access.
...
Code patch by Roger Serwy.
2012-06-02 20:22:58 -04:00
Sandro Tosi
29d09aa4dd
Issue #14926 : fix docstring highlight
2012-06-02 19:40:02 +02:00
Ned Deily
8b2a56b89d
Issue #14962 : Update text coloring in IDLE shell window after changing
...
options. Patch by Roger Serwy.
2012-05-31 09:17:29 -07:00
Vinay Sajip
d70be9ba1f
Added test skip under Windows, as not applicable there.
2012-05-31 12:37:04 +01:00
Ned Deily
3aee9416a0
Issue #10997 : Prevent a duplicate entry in IDLE's "Recent Files" menu.
2012-05-29 10:43:36 -07:00
Meador Inge
031e25b0f7
Issue #9041 : raised exception is misleading
...
An issue in ctypes.c_longdouble, ctypes.c_double, and ctypes.c_float that
caused an incorrect exception to be returned in the case of overflow has been
fixed.
2012-05-28 14:21:16 -05:00
Nick Coghlan
4b6045c30f
Issue #14443 : Tell rpmbuild to use the correct version of Python
2012-05-28 22:34:46 +10:00