Andrew Svetlov
405faed511
Add test coverage for os.removedirs ( #16775 )
2012-12-25 12:18:09 +02:00
Senthil Kumaran
bd6667aae3
Fix issue16713 - tel url parsing with params
2012-12-24 14:01:13 -08:00
Senthil Kumaran
ed30199e78
Fix issue16713 - tel url parsing with params
2012-12-24 14:00:20 -08:00
Senthil Kumaran
1974baadc6
Fix issue16713 - tel url parsing with params
2012-12-24 13:56:54 -08:00
Andrew Svetlov
332562f447
Keep ref to ECHILD in local scope ( #16650 )
2012-12-24 20:09:27 +02:00
Andrew Svetlov
5b187ce700
Keep ref to ECHILD in local scope ( #16650 )
2012-12-24 20:06:52 +02:00
Andrew Svetlov
08bab07291
Keep ref to ECHILD in local scope ( #16650 )
2012-12-24 20:06:35 +02:00
Mark Dickinson
9fade768c8
Issue #13863 : fix incorrect .pyc timestamps on Windows / NTFS (apparently due to buggy fstat)
2012-12-24 16:33:18 +00:00
Andrew Svetlov
d8590ff209
Issue #16511 : Use default IDLE width and height if config param is not valid.
...
Patch Serhiy Storchaka.
2012-12-24 13:17:59 +02:00
Andrew Svetlov
7174f0883c
Issue #16511 : Use default IDLE width and height if config param is not valid.
...
Patch Serhiy Storchaka.
2012-12-24 13:16:47 +02:00
Andrew Svetlov
8a495a48a5
Issue #16511 : Use default IDLE width and height if config param is not valid.
...
Patch Serhiy Storchaka.
2012-12-24 13:15:43 +02:00
Senthil Kumaran
0a6b9eca68
merge from 3.2
...
Fix Issue15701 - HTTPError info method call raises AttributeError. Fix that to return headers correctly
2012-12-23 09:12:13 -08:00
Senthil Kumaran
41e66a26b0
Fix Issue15701 - HTTPError info method call raises AttributeError. Fix that to return headers correctly
2012-12-23 09:04:24 -08:00
Senthil Kumaran
f8a6b005fd
Fix Issue15701 - HTTPError info method call raises AttributeError. Fix that to return headers correctly
2012-12-23 09:00:47 -08:00
Andrew Svetlov
f347cf903c
merge heads
2012-12-23 12:51:40 +02:00
Andrew Svetlov
8e42e8a0c6
Issue #16045 : add more unit tests for built-in int()
...
Patch by Chris Jerdonek.
2012-12-23 12:49:33 +02:00
Andrew Svetlov
cddcafaf6b
Issue #16045 : add more unit tests for built-in int()
...
Patch by Chris Jerdonek.
2012-12-23 12:44:04 +02:00
Brett Cannon
73b969ec70
Issue #16752 : Add a missing import to modulefinder.
...
Also fix Misc/ACKS to put part of it back in alphabetical order and
remove some duplicate names.
Patch by Berker Peksag.
2012-12-22 19:34:21 -05:00
Petri Lehtinen
ab7dd183f3
#8853 : Allow port to be of type long for socket.getaddrinfo()
2012-12-20 21:09:56 +02:00
Benjamin Peterson
a2d6d7121e
call close on the underlying stream even if flush raises ( #16597 )
2012-12-20 12:24:10 -06:00
Benjamin Peterson
68623614f0
call close on the underlying stream even if flush raises ( closes #16597 )
...
Patch by Serhiy Storchaka.
2012-12-20 11:53:11 -06:00
Benjamin Peterson
5ff3f73d94
try to call __bytes__ before __index__ ( closes #16722 )
2012-12-19 15:27:41 -06:00
Andrew Svetlov
1f415cf2c2
replace threw with raised ( #16714 )
2012-12-19 22:54:47 +02:00
Andrew Svetlov
7bd61cbc03
replace threw with raised ( #16714 )
2012-12-19 22:49:25 +02:00
Andrew Svetlov
bacf1bf355
replace threw with raised ( #16714 )
2012-12-19 22:49:01 +02:00
Andrew Svetlov
bd644608bd
revert comment wording ( #16714 )
2012-12-19 22:47:05 +02:00
Antoine Pitrou
08d02724df
Small cleanup in test_ftplib
2012-12-19 20:44:02 +01:00
Antoine Pitrou
d5a070f586
Silence sporadic failure in RecvmsgIntoSCTPStreamTest.testRecvmsgEOF (issue #13876 ) - probably not Python-related.
2012-12-18 23:44:36 +01:00
Antoine Pitrou
07edb82e4b
Call importlib.invalidate_caches() after creating module files in test_threaded_import.
2012-12-18 23:28:04 +01:00
Antoine Pitrou
e0b1c23145
Try to make test_threaded_import faster and safer (issue #15599 ).
2012-12-18 23:03:42 +01:00
Antoine Pitrou
202b60640b
Add sanity assertions in some import lock code (issue #15599 ).
2012-12-18 22:18:17 +01:00
Andrew Svetlov
4bb142b1b7
Issue #16714 : use 'raise' exceptions, don't 'throw'.
...
Patch by Serhiy Storchaka.
2012-12-18 21:27:37 +02:00
Andrew Svetlov
5b89840d9c
Issue #16714 : use 'raise' exceptions, don't 'throw'.
...
Patch by Serhiy Storchaka.
2012-12-18 21:26:36 +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'
b6375a2d91
Issue 16646 (ftplib): deliberately use intermediate variable after catching exception
2012-12-17 20:46:29 +01:00
Giampaolo Rodola'
57f3487994
Issue 16646 (ftplib): deliberately use intermediate variable after catching exception
2012-12-17 20:46:16 +01:00
Andrew Svetlov
80ab6c53c6
merge heads
2012-12-17 19:07:57 +02:00
Andrew Svetlov
ed3f6c6c79
Issue #16647 : save socket error details in LMTP.connect()
...
Patch by Serhiy Storchaka.
2012-12-17 19:06:43 +02:00
Andrew Svetlov
3b69824de9
Issue #16647 : save socket error details in LMTP.connect()
...
Patch by Serhiy Storchaka.
2012-12-17 18:55:10 +02: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'
c2a8169aa3
Fix issue #16646 : ftplib.FTP.makeport() might lose socket error details. (patch by Serhiy Storchaka)
2012-12-17 14:30:48 +01:00
Giampaolo Rodola'
896cb15d0c
Fix issue #16646 : ftplib.FTP.makeport() might lose socket error details. (patch by Serhiy Storchaka)
2012-12-17 14:22:19 +01: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
Stefan Krah
9a4ff437d1
Issue #15783 : Support None default values in the Context() constructor.
2012-12-16 21:10:35 +01:00
Antoine Pitrou
92f8b0016e
Silence sporadic failure in RecvmsgSCTPStreamTest.testRecvmsgEOF (issue #13876 ) - probably not Python-related.
2012-12-16 16:40:04 +01:00
Antoine Pitrou
697ce5560f
Fix ResourceWarnings in test_pty
2012-12-16 16:09:11 +01:00
Antoine Pitrou
33138df36a
Issue #16696 : fix comparison between bytes and string. Also, improve glob tests.
2012-12-16 16:03:42 +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
124ee8b1ab
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:55:47 +01:00
Antoine Pitrou
3c331bb729
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:50:19 +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
9ca5893338
#16664 : Add regression tests for glob's behaviour concerning "."-entries
...
Patch by Sebastian Kreft.
2012-12-16 12:44:07 +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
Hynek Schlawack
646c7b5086
#16664 : Add regression tests for glob's behaviour concerning "."-entries
...
Patch by Sebastian Kreft.
2012-12-16 12:30:57 +01:00
Stefan Krah
040e311826
Issue #15783 : Except for the number methods, the C version of decimal now
...
supports all None default values present in decimal.py. These values were
largely undocumented.
2012-12-15 22:33:33 +01:00
Antoine Pitrou
d20e7745ee
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:22:30 +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
Antoine Pitrou
4113d2bd36
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
Ross Lagerwall
a0b315f5f7
Issue #16661 : Fix the os.getgrouplist() test by not assuming that it
...
gives the same output as "id -G".
2012-12-13 15:20:26 +00:00
Hynek Schlawack
c474c4e749
#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:33:41 +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
f29b4937f7
#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:02:26 +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
9d5e0cca85
#15872 : More shutil test fixes for Windows
2012-12-10 11:08:59 +01:00
Hynek Schlawack
9a4a750673
#15872 : More shutil test fixes for Windows
2012-12-10 11:08:09 +01:00
Hynek Schlawack
b57b094077
#15872 : Fix shutil.rmtree error tests for Windows
2012-12-10 10:08:41 +01:00
Hynek Schlawack
9e8ac56e35
#15872 : Fix shutil.rmtree error tests for Windows
2012-12-10 10:07:11 +01:00
Hynek Schlawack
b550110f64
#15872 : Fix 3.3 regression introduced by the new fd-based shutil.rmtree
...
It caused rmtree to not ignore certain errors when ignore_errors was set.
Patch by Alessandro Moura and Serhiy Storchaka.
2012-12-10 09:11:25 +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
af72f9ea9c
Issue #16629 : Merge IDLE test fix from 3.2.
2012-12-09 18:19:54 -08: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
33b9b71e8d
Issue #16582 : use int exit code in tkinter._exit
2012-12-10 00:05:08 +02:00
Andrew Svetlov
14857cf8fa
Issue #16582 : use int exit code in tkinter._exit
2012-12-10 00:03:39 +02:00
Andrew Svetlov
806bfad457
Issue #16582 : use int exit code in tkinter._exit
2012-12-10 00:02:31 +02:00
Antoine Pitrou
373528f6b1
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:46 +01:00
Antoine Pitrou
7dddec4e9d
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
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
3f7c0e4036
Merge fixes for #13614 , #13512 and #7719 from 3.2
2012-12-08 22:53:43 -05:00
Éric Araujo
24457c9ad3
Branch merge
2012-12-08 22:47:03 -05:00
Éric Araujo
367efc254d
Branch merge
2012-12-08 22:45:09 -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
Éric Araujo
9e06e8d5de
Use proper skip instead of reporting success in one distutils test
2012-12-08 22:30:47 -05:00
Éric Araujo
2320fa08a8
Fix setup.py register failure with invalid rst in description ( #13614 ).
...
Original patch by Julien Courteau and Pierre Paul Lefebvre.
2012-12-08 22:26:57 -05:00
Antoine Pitrou
f93ed3fa67
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:17:03 +01: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
Antoine Pitrou
d38c990bb7
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
26ea4a08a3
Remove code unneeded after f833e7ec4de1
2012-12-08 14:41:39 -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
f0eb7adc7f
Merge: skip pdb test for #13120 if threading is not available.
2012-12-05 15:06:54 +02:00
Andrew Svetlov
96bc04369a
Skip pdb test for #13120 if threading is not available.
2012-12-05 15:06:23 +02:00
Andrew Svetlov
1dfb5c1cf3
Merge issue #13120 : Allow to call pdb.set_trace() from thread.
...
Patch by Ilya Sandler.
2012-12-04 21:10:20 +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
Victor Stinner
8c7c697e49
Issue #15747 : skip chflags UF_IMMUTABLE tests if EOPNOTSUPP is raised.
...
This is necessary for ZFS systems, which don't support UF_IMMUTABLE.
--
Kubilay Kocak (koobs) asked me on IRC to backport this fix to Python 2.7: done!
2012-12-04 10:07:16 +01:00
Antoine Pitrou
56a2ae27e3
Fix test splitting in previous commit.
2012-12-03 21:09:08 +01:00
Antoine Pitrou
86067c2e17
Fix test splitting in previous commit.
2012-12-03 21:08:43 +01:00
Antoine Pitrou
74635c9177
Fix test splitting in previous commit.
2012-12-03 21:08:43 +01:00
Antoine Pitrou
b33941ab02
Split the bigmem re test in two separate tests with different memory requirements.
2012-12-03 20:55:56 +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
Antoine Pitrou
735f36edb8
Split the bigmem re test in two separate tests with different memory requirements.
2012-12-03 20:53:12 +01:00
Andrew Svetlov
e854433686
Merge issue #16583 : Prevent nesting SystemExit in tkinter.CallWrapper
2012-12-03 16:13:34 +02:00
Andrew Svetlov
eb0abce2f8
Issue #16583 : Prevent nesting SystemExit in tkinter.CallWrapper
2012-12-03 16:13:07 +02:00
Benjamin Peterson
a2816c2b11
more test to more general test file, so it can test more things
2012-12-02 13:04:37 -05:00
Benjamin Peterson
2f560fa300
loosen test now that bytes are allowed
2012-12-02 12:37:04 -05:00
Benjamin Peterson
47a00f3d1a
support encoding error handlers that return bytes ( closes #16585 )
2012-12-02 11:20:28 -05:00
Antoine Pitrou
9a2b26748b
Issue #10182 : The re module doesn't truncate indices to 32 bits anymore.
...
Patch by Serhiy Storchaka.
2012-12-02 12:54:28 +01: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
Antoine Pitrou
b83575b0a5
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
Raymond Hettinger
80e9eedd12
Minor fixups. Early-out for equality test. Inline PREV/NEXT constants.
2012-12-01 19:22:02 -08:00
Benjamin Peterson
71966058a8
fix spelling
2012-11-30 16:13:14 -05:00
Benjamin Peterson
8a1a17b309
Remove redundant check for symlink. ( closes #6036 )
...
Patch by Bruno Dupuis.
2012-11-30 16:12:15 -05:00
Benjamin Peterson
139891ba82
merge 3.2 ( #16573 )
2012-11-29 10:56:11 -05:00
Benjamin Peterson
57af38700a
enumerate only requires an iterable ( closes #16573 )
...
Patch by Jonathan Kotta.
2012-11-29 10:55:22 -05:00
Benjamin Peterson
ed10a30ed6
enumerate only requires an iterable ( closes #16573 )
...
Patch by Jonathan Kotta.
2012-11-29 10:55:22 -05:00
Andrew Svetlov
ac26a2e736
Issue #16477 : Close tarfile internal handlers in case of exception.
...
Patch by Serhiy Storchaka.
2012-11-29 14:22:26 +02:00
Andrew Svetlov
7ecd13da5f
Merge issue #16477 : Close tarfile internal handlers in case of exception.
...
Patch by Serhiy Storchaka.
2012-11-29 14:21:23 +02: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
159f12e335
#16549 : merge with 3.2.
2012-11-29 05:10:31 +02:00
Ezio Melotti
4927633ab6
#16549 : fix test failures on Windows.
2012-11-29 05:10:07 +02:00
Ezio Melotti
43acbf1fd6
#16549 : fix test failures on Windows.
2012-11-29 05:08:54 +02:00
Ezio Melotti
4cee810f5d
#16476 : merge with 3.2.
2012-11-29 02:26:15 +02:00
Ezio Melotti
b32512ed9a
#16476 : Fix json.tool to avoid including trailing whitespace.
2012-11-29 02:25:03 +02:00
Ezio Melotti
def6ee5979
#16476 : Fix json.tool to avoid including trailing whitespace.
2012-11-29 02:22:49 +02:00
Ezio Melotti
1e86d01e1e
#16549 : merge with 3.2.
2012-11-29 02:16:58 +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
d8feba904c
#16549 : Add tests for json.tools. Initial patch by Berker Peksag and Serhiy Storchaka.
2012-11-29 02:14:52 +02:00
Ezio Melotti
57af3bf158
#16333 : merge with 3.2.
2012-11-29 00:36:42 +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
3a237ebcaa
#16333 : document a way to get rid of trailing whitespace when indent is used.
2012-11-29 00:22:30 +02:00
Ezio Melotti
c483034048
#16559 : merge with 3.2.
2012-11-26 19:27:02 +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
Ezio Melotti
282d331ec7
#16559 : Add more tests for the json module. Patch by Serhiy Storchaka.
2012-11-26 19:22:58 +02:00
Mark Dickinson
b1cc6aa2df
Issue #9011 : AST creation no longer modifies CST for negated numeric literals.
2012-11-25 17:11:33 +00:00
Vinay Sajip
d27e05d734
Closes #16521 : Improved error handling for basicConfig(), added tests for same.
2012-11-25 15:11:46 +00:00
Mark Dickinson
ded35aeb9d
Issue #16546 : make ast.YieldFrom argument mandatory.
2012-11-25 14:36:26 +00:00
Mark Dickinson
1658797a9d
Issue #16339 : Document and test exec(stmt, globals, locals) form in Python 2.7.
2012-11-25 13:25:57 +00:00
Antoine Pitrou
9982c53c2f
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:41:34 +01: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
Antoine Pitrou
508d7d356e
test_winsound should require the "audio" resource, as it does on 3.x.
...
(this should fix some buildbot test failures)
2012-11-24 18:25:25 +01:00
Ezio Melotti
9ab09d129e
Merge debug print removal with 3.2.
2012-11-23 22:16:45 +02:00
Ezio Melotti
82e60de727
Remove debug print.
2012-11-23 22:16:07 +02:00
Vinay Sajip
27e4b6059e
Issue #16519 : Used os.path.abspath, removed unnecessary code for executable_name.
2012-11-23 19:16:49 +00:00
Ezio Melotti
8a6d1fed41
#16306 : merge with 3.2.
2012-11-23 18:52:39 +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
Ezio Melotti
ec6486d52d
#16306 : report only the first unknown option and add more tests. Patch by Serhiy Storchaka.
2012-11-23 18:46:11 +02:00
Raymond Hettinger
0ec8f48b99
Remove steps no longer needed once __del__ was removed
2012-11-20 21:42:44 -08:00
Raymond Hettinger
ec5046b76b
Fit nit: the return got dropped from an earlier check-in
2012-11-20 21:11:26 -08:00
Chris Jerdonek
5fae0e5854
Improve str() and object.__str__() documentation (issue #13538 ).
2012-11-20 17:45:51 -08:00
Chris Jerdonek
17fc44c9b3
Improve str() and object.__str__() documentation (issue #13538 ).
2012-11-20 17:31:02 -08:00
Barry Warsaw
ed843b5e5c
Do a better job of preserving the state of sys.modules.
2012-11-20 17:10:10 -05:00
Antoine Pitrou
a34412a992
Merge test from issue #1160 .
2012-11-20 22:35:53 +01:00
Antoine Pitrou
b83ea144cc
Issue #1160 : Fix compiling large regular expressions on UCS2 builds.
...
Patch by Serhiy Storchaka.
2012-11-20 22:30:42 +01: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
Barry Warsaw
82c1c781c7
- Issue #16514 : Fix regression causing a traceback when sys.path[0] is None
...
(actually, any non-string or non-bytes type).
2012-11-20 15:22:51 -05:00
Ezio Melotti
4b26d5507b
#7782 : merge with 3.2.
2012-11-18 23:15:47 +02:00
Ezio Melotti
4a1fdcf07d
#7782 : add a test for test_iter.
2012-11-18 23:14:42 +02:00
Ezio Melotti
6451497df1
#7782 : add a test for test_iter.
2012-11-18 23:14:42 +02:00
Ezio Melotti
f7c709d62d
#16306 : merge with 3.2.
2012-11-18 14:02:08 +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
db5947f0f3
#16306 : Fix multiple error messages when unknown command line parameters where passed to the interpreter. Patch by Hieu Nguyen.
2012-11-18 13:46:38 +02:00
Ezio Melotti
6a5fc4c443
#14313 : zipfile now raises NotImplementedError when the compression type is unknown.
2012-11-18 13:20:36 +02:00
Ezio Melotti
9e94972eed
#14313 : zipfile now raises NotImplementedError when the compression type is unknown.
2012-11-18 13:18:06 +02:00
Antoine Pitrou
02512fb1cf
Issue #16408 : Fix file descriptors not being closed in error conditions in the zipfile module.
...
Patch by Serhiy Storchaka.
2012-11-17 23:56:53 +01:00
Antoine Pitrou
8572da5e96
Issue #16408 : Fix file descriptors not being closed in error conditions in the zipfile module.
...
Patch by Serhiy Storchaka.
2012-11-17 23:52:05 +01: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
Antoine Pitrou
e3ae321222
Issue #15379 : Fix passing of non-BMP characters as integers for the charmap decoder (already working as unicode strings).
...
Patch by Serhiy Storchaka.
2012-11-17 21:14:58 +01:00
Brett Cannon
56b4ca78d8
Issue #16489 : Make it clearer that importlib.find_loader() requires
...
the user to import any parent packages.
2012-11-17 09:30:55 -05:00
Jesus Cea
fc1a63620e
MERGE: Closes #16461 : Wave library should be able to deal with 4GB wav files, and sample rate of 44100 Hz.
2012-11-17 03:42:41 +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
Jesus Cea
f34e4de3f5
Closes #16461 : Wave library should be able to deal with 4GB wav files, and sample rate of 44100 Hz.
2012-11-17 03:38:17 +01:00
Ezio Melotti
eb24b44ef4
#16478 : merge with 3.2.
2012-11-16 13:17:42 +02: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
Richard Oudkerk
021f4c2ecc
Issue #16481 : multiprocessing no longer leaks process handles on Windows.
2012-11-15 18:16:35 +00:00
Philip Jenvey
21c95ebf7f
merge 3.2
2012-11-14 14:49:49 -08: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
Vinay Sajip
87ed599b8a
Issue #16378 : Updated docstrings to reflect the defaults present in the code.
2012-11-14 11:18:35 +00:00
Philip Jenvey
000bd4254f
merge 3.2
2012-11-13 12:27:56 -08:00
Philip Jenvey
3acc7ef1c5
add gc_collects to weakref tests
2012-11-13 12:26:31 -08:00
Benjamin Peterson
debf64ce2b
missing letter
2012-11-12 16:48:17 -05:00
Victor Stinner
e667e98faa
Issue #16218 , #16444 : Backport improvment on tests for non-ASCII characters
2012-11-12 01:23:15 +01:00
Antoine Pitrou
37bfa4e7ec
Add a test for hashing of unaligned memory buffers (from issue #16427 ).
2012-11-11 20:10:48 +01:00
Antoine Pitrou
1de1394f54
Merge heads
2012-11-11 19:40:49 +01:00
Antoine Pitrou
cc7715f8ae
Merge heads
2012-11-11 19:40:38 +01:00
Antoine Pitrou
f6a50cfa07
Issue #16453 : Fix equality testing of dead weakref objects.
...
Also add tests for ordering and hashing.
2012-11-11 19:37:41 +01:00
Antoine Pitrou
b704eab599
Issue #16453 : Fix equality testing of dead weakref objects.
...
Also add tests for hashing.
2012-11-11 19:36:51 +01:00
Antoine Pitrou
e11fecb5a9
Issue #16453 : Fix equality testing of dead weakref objects.
...
Also add tests for ordering and hashing.
2012-11-11 19:36:51 +01:00
Gregory P. Smith
027d6fcebd
remove an obsolete comment
2012-11-11 10:13:06 -08:00
Gregory P. Smith
859035d2ef
Refactor test_preexec_errpipe to not create an uncollectable reference cycle.
2012-11-11 10:00:49 -08:00
Gregory P. Smith
e27faac45f
Refactor test_preexec_errpipe to not create an uncollectable reference cycle.
2012-11-11 09:59:27 -08:00
Gregory P. Smith
f047ba83e8
Refactor test_preexec_errpipe to not create an uncollectable reference cycle.
2012-11-11 09:49:02 -08:00
Nadeem Vawda
6ff262e18f
Issue #15677 : Document that zlib and gzip accept a compression level of 0 to mean 'no compression'.
...
Patch by Brian Brazil.
2012-11-11 14:14:47 +01:00
Nadeem Vawda
19e568d254
Issue #15677 : Document that zlib and gzip accept a compression level of 0 to mean 'no compression'.
...
Patch by Brian Brazil.
2012-11-11 14:04:14 +01:00
Nadeem Vawda
04050b80b1
Issue #15677 : Document that zlib and gzip accept a compression level of 0 to mean 'no compression'.
...
Patch by Brian Brazil.
2012-11-11 13:52:10 +01:00
Gregory P. Smith
c3197254ac
whitespace fix
2012-11-11 02:01:56 -08:00
Gregory P. Smith
211248b214
Fix issue #16140 bug that the fix to issue #16327 added - don't double
...
close subprocess.PIPE file descriptors when the child encounters an
error prior to exec.
2012-11-11 02:00:49 -08:00
Gregory P. Smith
c8ac03d936
Fixes issue #16140 : The subprocess module no longer double closes its
...
child subprocess.PIPE parent file descriptors on child error prior to
exec().
This would lead to race conditions in multithreaded programs where
another thread opened a file reusing the fd which was then closed out
from beneath it by the errant second close.
2012-11-11 01:38:18 -08:00
Gregory P. Smith
12489d98e6
Fixes issue #16140 : The subprocess module no longer double closes its
...
child subprocess.PIPE parent file descriptors on child error prior to
exec().
This would lead to race conditions in multithreaded programs where
another thread opened a file reusing the fd which was then closed out
from beneath it by the errant second close.
2012-11-11 01:37:02 -08:00
Gregory P. Smith
6893732c35
Remove the subprocess "bad exception data" warning (formerly a print!)
...
all together and just include the repr of the data in the exception
itself instead of the useless string "Unknown".
This code path is unlikely to even be possible to take given the
nature of the pipe it gets subprocess data from.
2012-11-11 00:04:52 -08:00
Gregory P. Smith
3aee222122
Remove the subprocess "bad exception data" warning (formerly a print!)
...
all together and just include the repr of the data in the exception
itself instead of the useless string "Unknown".
This code path is unlikely to even be possible to take given the
nature of the pipe it gets subprocess data from.
2012-11-11 00:04:13 -08:00
Gregory P. Smith
1f83866ecd
Rename a local variable for readability and change a "this can't
...
happen" print() call into a RuntimeWarning as it should've been in the
first place. Because nothing should ever cause unexpected stdout output.
2012-11-10 23:33:56 -08:00