Commit Graph

18675 Commits

Author SHA1 Message Date
Andrew Svetlov 7bd61cbc03 replace threw with raised (#16714) 2012-12-19 22:49:25 +02:00
Andrew Svetlov 737fb89dd1 Issue #16714: use 'raise' exceptions, don't 'throw'.
Patch by Serhiy Storchaka.
2012-12-18 21:14:22 +02:00
Giampaolo Rodola' 57f3487994 Issue 16646 (ftplib): deliberately use intermediate variable after catching exception 2012-12-17 20:46:16 +01:00
Andrew Svetlov b6693c4604 Issue #16647: save socket error details in LMTP.connect()
Patch by Serhiy Storchaka.
2012-12-17 18:54:53 +02:00
Giampaolo Rodola' fc3278802c Fix issue #16646: ftplib.FTP.makeport() might lose socket error details. (patch by Serhiy Storchaka) 2012-12-17 14:20:27 +01:00
Antoine Pitrou 697ce5560f Fix ResourceWarnings in test_pty 2012-12-16 16:09:11 +01:00
Antoine Pitrou 5461558d1a Issue #16696: fix comparison between bytes and string. Also, improve glob tests. 2012-12-16 16:03:01 +01:00
Antoine Pitrou 3d068b2ecf Issue #16626: Fix infinite recursion in glob.glob() on Windows when the pattern contains a wildcard in the drive or UNC path.
Patch by Serhiy Storchaka.
2012-12-16 13:49:37 +01:00
Hynek Schlawack dec59ec5ff #16664: Add regression tests for glob's behaviour concerning "."-entries
Patch by Sebastian Kreft.
2012-12-16 12:39:11 +01:00
Antoine Pitrou 084daa2f74 Issue #16298: In HTTPResponse.read(), close the socket when there is no Content-Length and the incoming stream is finished.
Patch by Eran Rundstein.
2012-12-15 19:11:54 +01:00
Hynek Schlawack 87f9b46f15 #15872: Some more Windows related tuning to shutil.rmtree tests
Turns out, the snakebite bots behave also their peculiarities.

I'm really not proud of this stream of commits. :(
2012-12-10 16:29:57 +01:00
Hynek Schlawack b9e9f3e70d #15872: Be flexible with appending *.* in shutil.rmtree test case
The Windows buildbots seem to be unable to agree whether they need them or not.
2012-12-10 12:01:28 +01:00
Hynek Schlawack 9a4a750673 #15872: More shutil test fixes for Windows 2012-12-10 11:08:09 +01:00
Hynek Schlawack 9e8ac56e35 #15872: Fix shutil.rmtree error tests for Windows 2012-12-10 10:07:11 +01:00
Hynek Schlawack d16eacba48 #15872: Add tests for a 3.3 regression in the new fd-based shutil.rmtree
It cause shutil.rmtree not ignore all errors. Also add a test ensuring that
rmtree fails when being called on a symlink. Patch by Serhiy Storchaka.
2012-12-10 09:00:09 +01:00
Chris Jerdonek 175196886e Issue #16629: Fix IDLE idlelib.CallTips test. Patch by Roger Serwy.
This commit updates a test broken by the change made for issue #14783.
2012-12-09 18:17:27 -08:00
Andrew Svetlov 806bfad457 Issue #16582: use int exit code in tkinter._exit 2012-12-10 00:02:31 +02:00
Antoine Pitrou 7ec3a32360 Issue #16248: Disable code execution from the user's home directory by tkinter when the -E flag is passed to Python.
Patch by Zachary Ware.
2012-12-09 14:46:18 +01:00
Éric Araujo 24457c9ad3 Branch merge 2012-12-08 22:47:03 -05:00
Éric Araujo 8b503c0a4e Fix setup.py register failure with invalid rst in description (#13614).
Original patch by Julien Courteau and Pierre Paul Lefebvre.
2012-12-08 22:41:11 -05:00
Antoine Pitrou 62a0d6ea40 Issue #16602: When a weakref's target was part of a long deallocation chain, the object could remain reachable through its weakref even though its refcount had dropped to zero.
Thanks to Eugene Toder for diagnosing and reporting the issue.
2012-12-08 21:15:26 +01:00
Éric Araujo d61926e6be Create ~/.pypirc securely (#13512).
There was a window between the write and the chmod where the user’s
password would be exposed, depending on default permissions.  Philip
Jenvey’s patch fixes it.
2012-12-08 14:51:47 -05:00
Éric Araujo 3e4a3dcb23 Ignore .nfs* files in distutils (#7719).
These files are created by some NFS clients a file is edited and removed
concurrently (see added link in doc for more info).  If such a file is
removed between distutils calls listdir and copy, it will get confused.
Other special files are ignored in sdist (namely VCS directories), but
this has to be filtered out earlier.
2012-12-08 14:21:51 -05:00
Andrew Svetlov 96bc04369a Skip pdb test for #13120 if threading is not available. 2012-12-05 15:06:23 +02:00
Andrew Svetlov 539ee5da6f Issue #13120: Allow to call pdb.set_trace() from thread.
Patch by Ilya Sandler.
2012-12-04 21:08:28 +02:00
Antoine Pitrou 86067c2e17 Fix test splitting in previous commit. 2012-12-03 21:08:43 +01:00
Antoine Pitrou 1f1888ec1e Split the bigmem re test in two separate tests with different memory requirements. 2012-12-03 20:53:12 +01:00
Andrew Svetlov eb0abce2f8 Issue #16583: Prevent nesting SystemExit in tkinter.CallWrapper 2012-12-03 16:13:07 +02:00
Antoine Pitrou 43fb54cd4f Issue #10182: The re module doesn't truncate indices to 32 bits anymore.
Patch by Serhiy Storchaka.
2012-12-02 12:52:36 +01:00
Benjamin Peterson 57af38700a enumerate only requires an iterable (closes #16573)
Patch by Jonathan Kotta.
2012-11-29 10:55:22 -05:00
Andrew Svetlov 718df1d638 Issue #16477: Close tarfile internal handlers in case of exception.
Patch by Serhiy Storchaka.
2012-11-29 14:20:47 +02:00
Ezio Melotti 4927633ab6 #16549: fix test failures on Windows. 2012-11-29 05:10:07 +02:00
Ezio Melotti b32512ed9a #16476: Fix json.tool to avoid including trailing whitespace. 2012-11-29 02:25:03 +02:00
Ezio Melotti 057bcb4c6c #16549: Make json.tool work again on Python 3 and add tests. Initial patch by Berker Peksag and Serhiy Storchaka. 2012-11-29 02:15:18 +02:00
Ezio Melotti d654dedbbb #16333: document a way to get rid of trailing whitespace when indent is used. 2012-11-29 00:35:29 +02:00
Ezio Melotti 8c52370403 #16559: Add more tests for the json module. Patch by Serhiy Storchaka. 2012-11-26 19:24:20 +02:00
Vinay Sajip d27e05d734 Closes #16521: Improved error handling for basicConfig(), added tests for same. 2012-11-25 15:11:46 +00:00
Antoine Pitrou bf6ecf92fa Issue #12848: The pure Python pickle implementation now treats object lengths as unsigned 32-bit integers, like the C implementation does.
Patch by Serhiy Storchaka.
2012-11-24 20:40:21 +01:00
Ezio Melotti 82e60de727 Remove debug print. 2012-11-23 22:16:07 +02:00
Ezio Melotti a0dd22e5e8 #16306: report only the first unknown option and add more tests. Patch by Serhiy Storchaka. 2012-11-23 18:48:32 +02:00
Chris Jerdonek 17fc44c9b3 Improve str() and object.__str__() documentation (issue #13538). 2012-11-20 17:31:02 -08:00
Antoine Pitrou 39bdad813a Issue #1160: Fix compiling large regular expressions on UCS2 builds.
Patch by Serhiy Storchaka.
2012-11-20 22:30:42 +01:00
Ezio Melotti 4a1fdcf07d #7782: add a test for test_iter. 2012-11-18 23:14:42 +02:00
Ezio Melotti 7c66319edc #16306: Fix multiple error messages when unknown command line parameters where passed to the interpreter. Patch by Hieu Nguyen. 2012-11-18 13:55:52 +02:00
Ezio Melotti 6a5fc4c443 #14313: zipfile now raises NotImplementedError when the compression type is unknown. 2012-11-18 13:20:36 +02:00
Antoine Pitrou 17babc5e97 Issue #16408: Fix file descriptors not being closed in error conditions in the zipfile module.
Patch by Serhiy Storchaka.
2012-11-17 23:50:08 +01:00
Jesus Cea e4b863982c Closes #16461: Wave library should be able to deal with 4GB wav files, and sample rate of 44100 Hz. 2012-11-17 03:41:54 +01:00
Ezio Melotti 103f17ef91 #16478: use floor division in tabnanny and fix a ResourceWarning. Patch by Serhiy Storchaka. 2012-11-16 13:17:08 +02:00
Philip Jenvey b37ac8eaf6 don't gc_collect on CPython to guarantee a lack of ref cycles (thanks Antoine) 2012-11-14 14:37:24 -08:00
Philip Jenvey 3acc7ef1c5 add gc_collects to weakref tests 2012-11-13 12:26:31 -08:00