Commit graph

10672 commits

Author SHA1 Message Date
Nick Coghlan
a508770e20 Close #2501: Permission bits are once again correctly copied from the source file to the cached bytecode file. Test by Eric Snow. 2012-08-24 18:32:40 +10:00
Stefan Krah
66e63170d9 Issue #15770: Check invalid arguments in test function. Patch by Victor Stinner. 2012-08-23 15:53:45 +02:00
Alexander Belopolsky
1f924d21d3 Added test for a bug fixed in issue #665194. 2012-08-22 22:06:37 -04:00
R David Murray
b8687df653 #665194: Update email.utils.localtime to use astimezone, and fix bug.
The new code correctly handles historic changes in UTC offsets.
A test for this should follow.

Original patch by Alexander Belopolsky.
2012-08-22 21:34:00 -04:00
Trent Nelson
75959cf247 Issue #15747: skip chflags UF_IMMUTABLE tests if EOPNOTSUPP is raised.
This is necessary for ZFS systems, which don't support UF_IMMUTABLE.

(Note: this commit is a manual merge of 78699:019a2390b014 as both
_test_chflags_regular_file and test_lchflags_symlink differ between
3.2 and default.)
2012-08-21 23:59:31 +00:00
Trent Nelson
ee253ebf62 Issue #15747: skip chflags UF_IMMUTABLE tests if EOPNOTSUPP is raised.
This is necessary for ZFS systems, which don't support UF_IMMUTABLE.
2012-08-21 23:41:43 +00:00
Ezio Melotti
b9717b5e02 #15752: merge with 3.2. 2012-08-21 11:39:47 +03:00
Ezio Melotti
1b47bf43a6 #15752: s/assertRaisesRegexp/assertRaisesRegex/g 2012-08-21 11:38:41 +03:00
Stefan Krah
5b27c53e36 Merge 3.2. 2012-08-21 08:25:41 +02:00
Stefan Krah
7cacd2eb92 Issue #15736: Fix overflow in _PySequence_BytesToCharpArray(). 2012-08-21 08:16:09 +02:00
Trent Nelson
139cd4352f Issue #15285: Refactor connect timeout test in test_timeout. 2012-08-20 21:40:21 -04:00
Trent Nelson
514dbb03ba Issue #15285: Refactor connect timeout test in test_timeout. 2012-08-20 21:22:59 -04:00
Senthil Kumaran
77ebfccd4d Fix Issue 15743 - improve urllib tests by removing deprecated method usages. Patch by Jeff Knupp. 2012-08-20 13:43:59 -07:00
Nick Coghlan
8bd24fe9ff Issue #12643: Respect sys.excepthook in code.InteractiveConsole 2012-08-20 23:02:28 +10:00
Stefan Krah
c0c03be53e Merge 3.2. 2012-08-20 14:42:59 +02:00
Stefan Krah
db579d7b25 Issue #15738: Fix a missing NULL check in subprocess_fork_exec(). 2012-08-20 14:36:47 +02:00
Stefan Krah
6adf2433e4 Merge 3.2. 2012-08-20 11:13:58 +02:00
Stefan Krah
fd24f9e51e Issue #15732: Fix (constructed) crash in _PySequence_BytesToCharpArray().
Found by Coverity.
2012-08-20 11:04:24 +02:00
Nick Coghlan
48fec05391 Close #14846: Handle a sys.path entry going away 2012-08-20 13:18:15 +10:00
Nick Coghlan
a8517ad3d9 Issue #14814: document the Interface APIs and fix various problems with the string representations (initial patch by Eli Bendersky). 2012-08-20 10:04:26 +10:00
R David Murray
749bd42072 Merge #13579: teach string.Formatter about 'a'.
Patch by Francisco Martín Brugué.
2012-08-19 17:45:40 -04:00
R David Murray
e56bf97ef4 #13579: teach string.Formatter about 'a'.
Patch by Francisco Martín Brugué.
2012-08-19 17:26:34 -04:00
Andrew Svetlov
a19de803e4 Issue #15595: Fix subprocess.Popen(universal_newlines=True)
for certain locales (utf-16 and utf-32 family).

Patch by Chris Jerdonek.
2012-08-19 22:20:03 +03:00
Andrew Svetlov
828607170d Issue #15595: Fix subprocess.Popen(universal_newlines=True)
for certain locales (utf-16 and utf-32 family).

Patch by Chris Jerdonek.
2012-08-19 22:13:41 +03:00
Andrew Svetlov
47ec25d2f6 Brush subprocess tests a bit. 2012-08-19 16:25:37 +03:00
Stefan Krah
4d16bcce07 The latest NumPy revision no longer segfaults here. 2012-08-19 12:54:50 +02:00
Stefan Krah
aaf8e2e32f Fix out-of-date comment in test_memoryview. 2012-08-19 12:50:24 +02:00
Antoine Pitrou
dbcae3c191 Issue #15615: Add some tests for the json module's handling of invalid input data.
Patch by Kushal Das.
2012-08-18 20:48:17 +02:00
Antoine Pitrou
b47ea9a6fe Issue #15615: Add some tests for the json module's handling of invalid input data.
Patch by Kushal Das.
2012-08-18 20:46:23 +02:00
Mark Dickinson
35fa864840 Issue #15477: Merge fix from 3.2 2012-08-18 12:26:15 +01:00
Mark Dickinson
05d79e9abf Issue #15477: Add workaround for log1p(-0.0) on platforms where it's broken. 2012-08-18 12:24:30 +01:00
Stefan Krah
5c3ddc8066 Closes #15632: regrtest.py: fix spurious refleaks due to various caches
filling up with random data.
2012-08-17 23:09:48 +02:00
Brett Cannon
7385adc84c Issue #15715: Ignore failed imports triggered by the use of fromlist.
When the fromlist argument is specified for __import__() and the
attribute doesn't already exist, an import is attempted. If that fails
(e.g. module doesn't exist), the ImportError will now be silenced (for
backwards-compatibility). This *does not* affect
``from ... import ...`` statements.

Thanks to Eric Snow for the patch and Simon Feltman for reporting the
regression.
2012-08-17 13:21:16 -04:00
Andrew Svetlov
943c5b31b6 Fix subprocess test broken on Windows 2012-08-16 20:17:47 +03:00
Richard Oudkerk
04ec8ce1bb Issue #14669: Fix pickling of connections and sockets on MacOSX
by sending/receiving an acknowledgment after file descriptor transfer.
TestPicklingConnection has been reenabled for MacOSX.
2012-08-16 16:48:55 +01:00
Andrew Svetlov
5395d2f07d Add yet another test for subprocess.Popen.communicate 2012-08-15 22:46:43 +03:00
Petri Lehtinen
aae61b8cd0 #11062: Fix adding a message from file to Babyl mailbox 2012-08-15 14:36:14 +03:00
Petri Lehtinen
3d12c4317c #11062: Fix adding a message from file to Babyl mailbox 2012-08-15 14:26:27 +03:00
R David Murray
7f84833726 Merge #15269: document dircmp.left and right, and add tests for them.
Patch by Chris Jerdonek.
2012-08-14 21:45:25 -04:00
R David Murray
2b209cd78d #15269: document dircmp.left and right, and add tests for them.
Patch by Chris Jerdonek.
2012-08-14 21:40:13 -04:00
Andrew Svetlov
aa0dbdc2dd Issue #15592. Fix regression: subprocess.communicate() breaks on no input with universal newlines true.
Patch by Chris Jerdonek.
2012-08-14 18:40:21 +03:00
Andrew Svetlov
f3765071eb Add test to explicit check the absence regression in subprocess (issue #15592).
Patch by Chris Jerdonek.
2012-08-14 18:35:17 +03:00
Richard Oudkerk
3165a75e45 Merge 3.2 2012-08-14 12:51:14 +01:00
Richard Oudkerk
e88a2445bc Issue #15646: Prevent equivalent of a fork bomb when using multiprocessing
on Windows without the "if __name__ == '__main__'" idiom.
2012-08-14 11:41:32 +01:00
Brian Curtin
835df52471 Merge 3.2 2012-08-13 17:12:02 -05:00
Brian Curtin
6f5c5cb75b Fix #15496. Add directory removal helpers to make Windows tests more reliable. Patch by Jeremy Kloth 2012-08-13 17:05:57 -05:00
Georg Brandl
826d570779 Merge with 3.2. 2012-08-11 11:02:23 +02:00
Georg Brandl
7b250a5cff Revert 961a15aff2a6, this is already checked in another way. 2012-08-11 11:02:14 +02:00
Georg Brandl
68fad6fb37 Merge with 3.2. 2012-08-11 10:59:45 +02:00
Georg Brandl
22bfa37ed0 Closes #15620: check for presence of readline.clear_history(), which is apparently missing on some readline versions, before calling it in the test. 2012-08-11 10:59:23 +02:00