R David Murray
02ca144b92
#15447 : Use subprocess.DEVNULL in webbrowser, instead of opening
...
This eliminates a ResourceWarning, since before webbrowser was
explicitly opening os.devnull and then leaving it open. Tests
to follow.
Patch by Anton Barkovsky.
2012-09-03 12:44:29 -04:00
R David Murray
d674a770e9
Merge #15509 : If %action substitution produces a null string, drop it.
...
Patch by Anton Barkovsky, comment addition by me.
This shows up as a bug in 3.3 because the definition for Chrome
produces such an empty string. Tests will follow.
2012-09-03 12:37:59 -04:00
R David Murray
94dd7cb0c7
#15509 : If %action substitution produces a null string, drop it.
...
Patch by Anton Barkovsky, comment addition by me.
This showed up as a bug in 3.3 because the definition for Chrome
produced such an empty string. This fix is tested in 3.3+;
backporting the new test suite is more trouble than it is worth.
2012-09-03 12:30:12 -04:00
Benjamin Peterson
bd0df50fb6
get rid of ast_error_finish by passing the compiling struct to ast_error
2012-09-02 15:04:51 -04:00
Benjamin Peterson
c7f447c89f
merge 3.2 ( #15846 )
2012-09-02 14:24:44 -04:00
Benjamin Peterson
2e2c903700
prevert ast errors from being normalized before ast_error_finish is called ( closes #15846 )
2012-09-02 14:23:15 -04:00
Georg Brandl
02f66cbe87
Bump to 3.3.0rc2.
2012-09-09 08:56:46 +02:00
Ned Deily
24ec054ea1
Issue #15822 : Fix installation of lib2to3 grammar pickles to ensure
...
they are created in the install locations and with the proper timestamp.
(Solution suggested by MvL)
2012-09-08 19:04:47 -07:00
Antoine Pitrou
2b0218a259
Issue #13992 : The trashcan mechanism is now thread-safe. This eliminates
...
sporadic crashes in multi-thread programs when several long deallocator
chains ran concurrently and involved subclasses of built-in container
types.
Because of this change, a couple extension modules compiled for 3.2.4
(those which use the trashcan mechanism, despite it being undocumented)
will not be loadable by 3.2.3 and earlier. However, extension modules
compiled for 3.2.3 and earlier will be loadable by 3.2.4.
2012-09-06 00:59:49 +02:00
Zbigniew Jędrzejewski-Szmek
55c206ab2f
Fix bug with argparse.Parser.parse_args(*args)
2012-09-02 14:59:19 +02:00
Benjamin Peterson
6a42bd67d7
Make super() internal errors RuntimeError instead of SystemError ( closes #15839 )
2012-09-01 23:04:38 -04:00
Petri Lehtinen
6f858a2eea
#15802 : Fix test logic in TestMaildir.test_create_tmp
2012-09-01 14:27:24 +03:00
Petri Lehtinen
1c371b255f
#15802 : Fix test logic in TestMaildir.test_create_tmp
2012-09-01 14:22:36 +03:00
R David Murray
64b0ef1509
Merge #12776,#11839: call argparse type function only once.
...
Before, the type function was called twice in the case where the default
was specified and the argument was given as well. This was especially
problematic for the FileType type, as a default file would always be
opened, even if a file argument was specified on the command line.
Patch by Arnaud Fontaine, with additional test by Mike Meyer.
2012-08-31 23:09:34 -04:00
R David Murray
6fb8fb17bf
#12776,#11839: call argparse type function only once.
...
Before, the type function was called twice in the case where the default
was specified and the argument was given as well. This was especially
problematic for the FileType type, as a default file would always be
opened, even if a file argument was specified on the command line.
Patch by Arnaud Fontaine, with additional test by Mike Meyer.
2012-08-31 22:45:20 -04:00
Brett Cannon
f7d176efe9
Issue #15828 : Don't try to close a file if imp.find_module() doesn't
...
return one.
2012-08-31 11:31:20 -04:00
Nick Coghlan
5d0612411e
Issue #15828 : Restore support for C extension modules in imp.load_module()
2012-09-01 00:13:45 +10:00
Brett Cannon
848cdfdf97
Issue #15828 : Don't try to close a file if imp.find_module() doesn't
...
return one.
2012-08-31 11:31:20 -04:00
Nick Coghlan
91b9f139bc
Issue #15828 : Restore support for C extension modules in imp.load_module()
2012-09-01 00:13:45 +10:00
Antoine Pitrou
2a021c80ce
Issue #15800 : fix the closing of input / output files when gzip is used as a script.
2012-08-30 00:30:14 +02:00
Antoine Pitrou
ecc4757b79
Issue #15800 : fix the closing of input / output files when gzip is used as a script.
2012-08-30 00:29:24 +02:00
Victor Stinner
1d39cde50c
Issue #15785 : Modify window.get_wch() API of the curses module: return a
...
character for most keys, and an integer for special keys, instead of always
returning an integer. So it is now possible to distinguish special keys like
keypad keys.
2012-08-29 01:40:57 +02:00
Benjamin Peterson
4e07a8c9aa
merge heads
2012-08-28 18:02:18 -04:00
Benjamin Peterson
59043f96ea
merge 3.2 ( #15801 )
2012-08-28 18:01:45 -04:00
Benjamin Peterson
28a6cfaefc
use the stricter PyMapping_Check ( closes #15801 )
2012-08-28 17:55:35 -04:00
Richard Oudkerk
ea62bd50a3
Issue #15784 : Modify OSError.__str__() to better distinguish between
...
errno error numbers and Windows error numbers.
2012-08-28 19:33:26 +01:00
Antoine Pitrou
5b9eccb383
Issue #15794 : Relax a test case due to the deadlock detection's conservativeness.
2012-08-28 20:10:18 +02:00
Antoine Pitrou
0398985920
Issue #15781 : Fix two small race conditions in import's module locking.
2012-08-28 00:24:52 +02:00
Richard Oudkerk
30147710e8
Issue #15784 : Modify OSError.__str__() to better distinguish between
...
errno error numbers and Windows error numbers.
2012-08-28 19:33:26 +01:00
Victor Stinner
ca2b64682e
Issue #15785 : Modify window.get_wch() API of the curses module: return a
...
character for most keys, and an integer for special keys, instead of always
returning an integer. So it is now possible to distinguish special keys like
keypad keys.
2012-08-29 01:40:57 +02:00
Antoine Pitrou
4f0338cab7
Issue #15781 : Fix two small race conditions in import's module locking.
2012-08-28 00:24:52 +02:00
Georg Brandl
4ab4ec258c
Bump to 3.3.0rc1.
2012-08-25 12:16:37 +02:00
Georg Brandl
d183f0be0b
Update pydoc topics and suspicious markup file.
2012-08-25 12:14:59 +02:00
Georg Brandl
cc0274b90f
merge with 3.2
2012-08-25 10:12:47 +02:00
Georg Brandl
c8076dfa9d
Fix wrong way of adding Error information in shutil.copytree.
2012-08-25 10:11:57 +02:00
Nick Coghlan
06e1ab0a6b
Close #15573 : use value-based memoryview comparisons (patch by Stefan Krah)
2012-08-25 17:59:50 +10:00
Brett Cannon
12c6bda4f0
Issue #15316 : Let exceptions raised during imports triggered by the
...
fromlist of __import__ propagate.
The problem previously was that if something listed in fromlist didn't
exist then that's okay. The fix for that was too broad in terms of
catching ImportError.
The trick with the solution to this issue is that the proper
refactoring of import thanks to importlib doesn't allow for a way to
distinguish (portably) between an ImportError because finders couldn't
find a loader, or a loader raised the exception. In Python 3.4 the
hope is to introduce a new exception (e.g. ModuleNotFound) to make it
clean to differentiate why ImportError was raised.
2012-08-24 18:25:59 -04:00
Mark Dickinson
6f64796c22
Remove overeager test (don't depend on the sign of a nan; cf. issue #14521 )
2012-08-24 20:31:33 +01:00
Vinay Sajip
a6894ba3c9
Reverted change to venv initialisation.
2012-08-24 20:01:02 +01:00
Mark Dickinson
448f57762d
Remove incorrect lines (meant for cdecimal) from recently added Decimal tests.
2012-08-24 19:51:00 +01:00
Mark Dickinson
e4204bcfb7
Issue #15544 : Fix Decimal.__float__ to work with payload-carrying NaNs.
2012-08-24 19:32:13 +01:00
Mark Dickinson
fc33d4ce0a
Issue #15544 : Fix Decimal.__float__ to work with payload-carrying NaNs.
2012-08-24 18:53:10 +01:00
Brett Cannon
ba0a3edd26
Issue #2051 : Tweak last commit for this issue to pass in mode instead
...
of source path to set_data() and make the new argument private until
possible API changes can be discussed more thoroughly in Python 3.4.
2012-08-24 13:48:39 -04:00
Brett Cannon
07c6e71689
Issue #15778 : Coerce ImportError.args to a string when it isn't
...
already one.
Patch by Dave Malcolm.
2012-08-24 13:05:09 -04:00
Georg Brandl
491b1dc79e
Closes #9374 : merge with 3.2
2012-08-24 18:15:46 +02:00
Georg Brandl
a61b09f406
Closes #9374 : add back now-unused module attributes; removing them is a backward compatibility issue, since they have a public-seeming name.
2012-08-24 18:15:29 +02:00
Andrew Svetlov
82649f3b87
Issue #15776 : Allow pyvenv to work in existing directory with --clean.
...
Patch by Vinay Sajip.
2012-08-24 19:00:15 +03:00
R David Murray
ad2a7d528a
Merge #15249 : Mangle From lines correctly when body contains invalid bytes.
...
Fix by Colin Su. Test by me, based on a test written by Petri Lehtinen.
2012-08-24 11:23:50 -04:00
R David Murray
638d40b433
#15249 : Mangle From lines correctly when body contains invalid bytes.
...
Fix by Colin Su. Test by me, based on a test written by Petri Lehtinen.
2012-08-24 11:14:13 -04:00
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
f9bd9141c5
Issue #665194 : Added a small optimization
2012-08-22 23:02:36 -04:00
Alexander Belopolsky
1f924d21d3
Added test for a bug fixed in issue #665194 .
2012-08-22 22:06:37 -04:00
R David Murray
097a1208bc
#665194 : fix variable name in exception code path.
...
It was correct in the original patch and I foobared it
when I restructured part of the code.
2012-08-22 21:52:31 -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
Petri Lehtinen
df9c945070
#15199 : Fix JavaScript's default MIME type to application/javascript
2012-08-20 21:30:03 +03:00
Petri Lehtinen
c6fdafcdf3
#15199 : Fix JavaScript's default MIME type to application/javascript
2012-08-20 21:28:58 +03: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
db7920b978
Close #14814 : Avoid depending on struct by using newer features. Also use enumerate where appropriate (patch by Serhiy Storchaka). Declaring PEP 3144 final at this point - any further changes to code or docs can go in new issues.
2012-08-20 10:19:12 +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
377a152e0d
Use Thread.is_alive() instead of old-style Thread.isAlive() in subprocess.
2012-08-19 20:49:39 +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
Ned Deily
6aaa03a901
Issue #15678 : Fix menu customization for IDLE started from OS X
...
command lines. It was broken as a side effect of the changes to
pythonw.c in b79d276041a8 for #15307 . Since sys.executable no
longer includes 'Python.app' in the path name, test for a
framework build instead. This should give the previous behavior
in nearly all cases. Whether the previous behavior is sensible
is left as an issue for later releases. IDLE.app behavior was
not affected as it does its own manipulation of sys.executable.
2012-08-17 13:22:30 -07: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
Petri Lehtinen
69a06dd59d
#11062 : Fix universal newline support in Babyl._install_message()
2012-08-16 07:27:53 +03:00
Petri Lehtinen
88614948c0
#11062 : Fix universal newline support in Babyl._install_message()
...
When adding a message from a binary file, \r\n was translated to
\r\r\n in the message body.
2012-08-16 07:27:01 +03:00
Andrew Svetlov
5395d2f07d
Add yet another test for subprocess.Popen.communicate
2012-08-15 22:46:43 +03:00
Andrew Svetlov
592df20efc
Cleanup universal_newlines usage for subprocess.Popen, remove unused param.
2012-08-15 17:36:15 +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
Andrew Svetlov
4e9e9c1c44
Issue #15571 : comment the fact what python impl of TextIOWrapper always works in write_throuth mode
2012-08-13 16:09:54 +03:00
Brett Cannon
b428f47cf6
Don't overwrite a __path__ value from extension modules if already
...
set.
2012-08-11 19:43:29 -04: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
Georg Brandl
1b94ab79a9
Bump to 3.3b2.
2012-08-11 08:49:20 +02:00
Georg Brandl
a81b481e3a
Fix markup errors and update pydoc topics.
2012-08-11 08:43:59 +02:00
Meador Inge
80dd1af4e0
Issue #15424 : Add a __sizeof__ implementation for array objects.
...
Patch by Ludwig Hähne.
2012-08-10 23:21:39 -05:00
Meador Inge
03b4d5072a
Issue #15424 : Add a __sizeof__ implementation for array objects.
...
Patch by Ludwig Hähne.
2012-08-10 22:35:45 -05:00
Philip Jenvey
688a551ca0
fix docstring wording
2012-08-10 16:21:35 -07:00
Brett Cannon
f410ce8c09
Issue #15502 : Refactor some code.
2012-08-10 17:41:23 -04:00
Philip Jenvey
731d48a65f
update docstring per the extension package fix, refactor
2012-08-10 11:53:54 -07:00
Brett Cannon
ac9f2f3de3
Issue #15576 : Allow extension modules to be a package's __init__
...
module again. Also took the opportunity to stop accidentally exporting
_imp.extension_suffixes() as public.
2012-08-10 13:47:54 -04:00
Brett Cannon
f4dc9204cc
Issue #15502 : Finish bringing importlib.abc in line with the current
...
state of the import system. Also make importlib.invalidate_caches()
work with sys.meta_path instead of sys.path_importer_cache to
completely separate the path-based import system from the overall
import system.
Patch by Eric Snow.
2012-08-10 12:21:12 -04:00
Andrew Svetlov
25a02d403c
Issue #15601 : fix tkinter test_variables failure with OS X Aqua Tk 8.4
2012-08-09 21:51:21 +03:00
Ned Deily
3a2b97e48a
Issue #14992 : merge from 3.2
2012-08-08 21:03:02 -07:00
Ned Deily
c622f4254b
Issue #14992 : Prevent test_os test_exist_ok_s_isgid_directory test case
...
failure on OS X built with 10.4 ABI.
2012-08-08 20:57:24 -07:00
Victor Stinner
9d512ab97f
Issue #13072 : Fix test_array for installation without the ctypes module
2012-08-09 00:43:56 +02:00
Victor Stinner
2965011668
regrtest: give more information when a child process fails with an error
...
different than KeyboardInterrupt
2012-08-08 22:37:26 +02:00
Victor Stinner
bded28c081
Issue #13072 : Ooops, now fix test_array for Linux with 32-bit wchar_t...
2012-08-08 20:19:37 +02:00
Victor Stinner
8d4734f6b2
Issue #13072 : Fix test_array for Windows with 16-bit wchar_t
2012-08-08 20:09:21 +02:00
Benjamin Peterson
0ed05059de
merge heads
2012-08-06 17:53:19 -07:00
Benjamin Peterson
b37df519c7
fix yield from return value on custom iterators ( closes #15568 )
2012-08-06 17:53:09 -07:00
Brett Cannon
d340b43d75
Issue #15163 : Pydoc shouldn't show __loader__ as a part of a module's
...
data.
Also alphabetized the attributes in the blacklist to make it easier to
detect changes.
Initial patch by Éric Araujo.
2012-08-06 17:19:22 -04:00
Brett Cannon
cb4996afe4
Issue #15471 : Don't use mutable object as default values for the
...
parameters of importlib.__import__().
2012-08-06 16:34:44 -04:00
Benjamin Peterson
21603c96e8
merge heads
2012-08-05 15:05:53 -07:00
Benjamin Peterson
4eda93723e
add another testcase
2012-08-05 15:05:34 -07:00
Antoine Pitrou
415d0f5cd3
Merge
2012-08-05 14:53:49 +02:00
Antoine Pitrou
4adc9a8cc9
Fix CGI tests to take into account the platform's line ending (issue #13119 )
2012-08-05 14:53:33 +02:00
Antoine Pitrou
e768c39890
Fix CGI tests to take into account the platform's line ending (issue #13119 )
2012-08-05 14:52:45 +02:00
Nadeem Vawda
043540088a
#15546 : Also fix GzipFile.peek().
2012-08-05 14:45:41 +02:00
Nick Coghlan
e3ded955f3
Issue #14814 : Remove redundant property from interface objects - prefixlen can be accessed via the associated network object
2012-08-05 22:45:22 +10:00
Nick Coghlan
730f67f2fa
Issue 14814: Docs work showed some more cases of networks pretending to be addresses and highlighted the weird approach to implementing the 'is_whatever' properties. Impl now illustrates far more clearly that networks have a property if both their network and broadcast addresses have that property
2012-08-05 22:02:18 +10:00
Nick Coghlan
e0c3f5edc0
Close #15559 : Implementing __index__ creates a nasty interaction with the bytes constructor. At least for 3.3, ipaddress objects must now be explicitly converted with int() and thus can't be passed directly to the hex() builtin.
2012-08-05 18:20:17 +10:00
Nadeem Vawda
37d3ff1487
#15546 : Fix {GzipFile,LZMAFile}.read1()'s handling of pathological input data.
2012-08-05 02:19:09 +02:00
Antoine Pitrou
9c92a691e1
Fix test_venv to work with universal newlines (issue #13119 )
2012-08-05 00:33:10 +02:00
Antoine Pitrou
6f1a40ffd3
Merge universal newlines-related fixes (issue #13119 )
2012-08-05 00:25:31 +02:00
Antoine Pitrou
ec2d26930c
Fix universal newlines test to avoid the newline translation done by sys.stdout.
2012-08-05 00:23:40 +02:00
Antoine Pitrou
894375a2fd
Fix test_sys under Windows (issue #13119 )
2012-08-05 00:15:06 +02:00
Andrew Svetlov
fa556bd75c
Issue #13052 : Fix IDLE crashing when replace string in Search/Replace dialog ended with '\'.
...
Patch by Roger Serwy.
2012-08-04 21:42:48 +03:00
Andrew Svetlov
5ad514d281
Issue #13052 : Fix IDLE crashing when replace string in Search/Replace dialog ended with '\'.
...
Patch by Roger Serwy.
2012-08-04 21:38:22 +03:00
Antoine Pitrou
8aaeb2f4dc
Merge
2012-08-04 16:17:10 +02:00
Antoine Pitrou
848698727f
Issue #12655 : Instead of requiring a custom type, os.sched_getaffinity and
...
os.sched_setaffinity now use regular sets of integers to represent the
CPUs a process is restricted to.
2012-08-04 16:16:35 +02:00
Nadeem Vawda
8280b4ba02
#15546 : Fix BZ2File.read1()'s handling of pathological input data.
2012-08-04 15:29:28 +02:00
Giampaolo Rodola'
d9f38bc704
asynchat speedup improvement: avoid to use a function mimicking old buffer() builtin behavior; instead use plain slicing
2012-08-04 14:38:16 +02:00
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
Victor Stinner
7b3f0fa68e
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:28:00 +02:00
Jesus Cea
ba9b404b65
MERGE: #15512 : Remove remnants of debugging code
2012-08-03 15:49:40 +02:00
Jesus Cea
676e73b3fb
#15512 : Remove remnants of debugging code
2012-08-03 15:49:14 +02:00
Jesus Cea
1659b75189
MERGE: Closes #15469 : Correct __sizeof__ support for deque
2012-08-03 14:52:12 +02:00
Jesus Cea
16e2fca47e
Closes #15469 : Correct __sizeof__ support for deque
2012-08-03 14:49:42 +02:00
Jesus Cea
88ca04e6a8
MERGE: Closes #15512 : Correct __sizeof__ support for parser
2012-08-03 14:29:26 +02:00
Jesus Cea
e9c5318967
Closes #15512 : Correct __sizeof__ support for parser
2012-08-03 14:28:37 +02:00
Jesus Cea
5323173dee
Closes #15514 : Correct __sizeof__ support for cpu_set
2012-08-03 14:18:11 +02:00
Victor Stinner
b3f5501250
Close #15534 : Fix a typo in the fast search function of the string library (_s => s)
...
Replace _s with ptr to avoid future confusion. Add also non regression tests.
2012-08-02 23:05:01 +02:00
Nick Coghlan
4941774f59
Issue #15502 : Bring the importlib.PathFinder docs and docstring more in line with the new import system documentation, and fix various parts of the new docs that weren't quite right given PEP 420 or were otherwise a bit misleading. Also note the key terminology problem still being discussed in the issue
2012-08-02 23:03:58 +10:00
Nick Coghlan
ff79486bb5
Close #15519 : Properly expose WindowsRegistryFinder in importlib and bring the name into line with normal import terminology. Original patch by Eric Snow
2012-08-02 21:45:24 +10:00
Nick Coghlan
8a9080feff
Issue #15502 : Bring the importlib ABCs into line with the current state of the import protocols given PEP 420. Original patch by Eric Snow.
2012-08-02 21:26:03 +10:00
Victor Stinner
7c7ea62e6c
Issue #15441 : Skip test_nonascii_abspath() of test_genericpath on Windows
...
if the bytes filenames cannot be encoded from the file system (ANSI) code page
2012-08-01 20:03:49 +02:00
Victor Stinner
53386d8f20
Issue #15463 : Write a test for faulthandler truncating the name of functions
...
to 500 characters.
2012-08-01 19:45:34 +02:00
Richard Oudkerk
b303580c7c
Issue #15525 : Increase timeout when TerminateProcess() fails
2012-08-01 17:44:18 +01:00
Martin v. Löwis
a562ed012d
Issue #8847 : Merge with 3.2
2012-08-01 11:09:55 +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
Jesus Cea
c9aa321a01
Closes #15499 : Sleep is hardcoded in webbrowser.UnixBrowser
2012-08-01 03:57:52 +02:00
Barry Warsaw
0efcf99c9e
abc fixes.
2012-07-31 17:52:32 -04:00
Barry Warsaw
38f75cbc00
Typo.
2012-07-31 16:39:43 -04:00
Barry Warsaw
9a5af1288d
merge
2012-07-31 16:03:25 -04:00
Andrew Svetlov
233f6845b3
Issue #9803 : Don't close IDLE on saving if breakpoint is open.
...
Patch by Roger Serwy.
2012-07-31 19:49:38 +03: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
Nick Coghlan
336d9ac6bd
Issue #15425 : Don't rely on the assumption that the current working directory is on sys.path (this will hopefully appease the XP buildbots)
2012-07-31 21:39:42 +10:00
Nick Coghlan
42c0766a53
Close #15486 : Simplify the mechanism used to remove importlib frames from tracebacks when they just introduce irrelevant noise
2012-07-31 21:14:18 +10:00
Victor Stinner
d5698cbbca
Fix initialization of the faulthandler module
...
faulthandler requires the importlib if "-X faulthandler" option is present on
the command line, so initialize faulthandler after importlib.
Add also an unit test.
2012-07-31 02:55:49 +02:00
Barry Warsaw
38732ea832
merge
2012-07-30 14:34:43 -04:00
Andrew Svetlov
504ba313fc
Issue #12288 : Consider '0' and '0.0' as valid initialvalue for tkinter SimpleDialog.
2012-07-30 20:01:13 +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
Antoine Pitrou
754d5ef8da
Better test for BytesIO.__sizeof__, now that the struct module supports (s)size_t.
...
Followup to issue #15489 .
2012-07-30 13:58:42 +02:00
Ned Deily
eb00d09718
Issue #14018 : merge
2012-07-30 03:38:02 -07: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
57911f6c1a
Issue #15489 : Add a __sizeof__ implementation for BytesIO objects.
...
Patch by Serhiy Storchaka.
2012-07-30 00:01:44 +02: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
Barry Warsaw
dee609c09f
merged
2012-07-29 16:40:04 -04:00
Barry Warsaw
d7d2194ea1
Integration of importdocs from the features/pep-420 repo.
2012-07-29 16:36:17 -04:00
Antoine Pitrou
a264384fe6
Issue #15487 : Add a __sizeof__ implementation for buffered I/O objects.
...
Patch by Serhiy Storchaka.
2012-07-29 19:04:57 +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
2b16844326
Issue #15467 : Merge 3.2
2012-07-29 16:38:45 +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
Nick Coghlan
5ee9892406
Close #15425 : Eliminate more importlib related traceback noise
2012-07-29 20:30:36 +10:00
Meador Inge
bb9b1c165d
Issue #15402 : Simplify Struct.__sizeof__ and make tests more precise.
2012-07-28 22:32:50 -05:00
Meador Inge
90bc2dbcce
Issue #15402 : Simplify Struct.__sizeof__ and make tests more precise.
2012-07-28 22:16:39 -05:00
Martin v. Löwis
e3010a8d12
Issue #14578 : Support modules registered in the Windows registry again.
...
Patch by Amaury Forgeot d'Arc.
2012-07-28 21:33:05 +02:00
Richard Oudkerk
5562d9dc5d
Issue #1692335 : Move initial args assignment to BaseException.__new__
...
to help pickling of naive subclasses.
2012-07-28 17:45:28 +01:00
Stefan Krah
7d12d9df13
Issue #12834 : Fix PyBuffer_ToContiguous() for non-contiguous arrays.
2012-07-28 12:25:55 +02:00
Ned Deily
6c779ea553
Issue #15364 : Fix test_srcdir for the installed case.
2012-07-27 23:37:04 -07:00
Richard Oudkerk
b15e622bb8
Issue #6056 : Make multiprocessing use setblocking(True) on the sockets it uses.
...
Original patch by J Derek Wilson.
2012-07-27 14:19:00 +01: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
Richard Oudkerk
46874ad367
Issue #15364 : Fix sysconfig.get_config_var('srcdir') to be an absolute path.
2012-07-27 12:06:55 +01:00
Martin v. Löwis
3bbd2fad4d
Issue #15456 : Fix code __sizeof__ after #12399 change.
...
Patch by Serhiy Storchaka.
2012-07-26 22:23:23 +02:00
Jason R. Coombs
d0118e16a1
Restored test by specifying that the symlink links to a target (currently required for Windows symlinks). See issue15093 for details.
2012-07-26 15:21:17 -04:00
Antoine Pitrou
0b9e7b9ea9
Issue #15320 : Make iterating the list of tests thread-safe when running tests in multiprocess mode.
...
Patch by Chris Jerdonek.
2012-07-26 00:47:15 +02: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
099414875b
merge 3.2
2012-07-25 11:33:02 +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
f4b341b0e6
merge 3.2
2012-07-25 10:49:32 +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
653e4b30e3
MERGE: Better test for Issue #15402 : Add a __sizeof__ method to struct.Struct
2012-07-23 18:16:18 +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
9f65899d19
Issue #15402 : Add a __sizeof__ method to struct.Struct.
...
Initial patch by Serhiy Storchaka.
2012-07-23 10:22:36 -05: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
970bef295d
Merge #15232 : correctly mangle From lines in MIME preamble and epilogue
2012-07-22 21:53:54 -04:00
R David Murray
6a31bc6d81
#15232 : correctly mangle From lines in MIME preamble and epilogue
2012-07-22 21:47:53 -04:00
Ned Deily
c7a5a76b1e
Issue #15184 : Some config variables in test_sysconfig_module
...
may differ between sysconfig and distutils.sysconfig due to
compiler customizations on OS X. For now, move those vars
into a separate test and skip if the customization has taken
place in distutils. The long-term solution is to eliminate
having two sysconfig modules.
2012-07-22 02:56:36 -07:00
Ned Deily
1ef871969c
Issue #15184 : Fix test__remove_unsupported_archs failures on 10.6
...
by removing unwarranted assumptions that clang compiler chain
cannot handle ppc (the driver passes off ppc compiles to gcc).
Mock the behavior instead.
2012-07-21 22:35:16 -07:00
Gregory P. Smith
34fcafde16
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:20:44 -07: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
45ccf032be
Merge #13922 : argparse no longer incorrectly strips '--' after the first one.
...
Patch by Jeff Knupp.
2012-07-21 22:56:49 -04: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
d4703d1d85
Merge #12353 : argparse now correctly handles null argument values.
...
Patch by Torsten Landschoff.
2012-07-21 22:28:08 -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
af418b2232
Merge #14391 : clarify docstring discussion of Action's 'type' argument's value.
2012-07-21 17:05:24 -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
779b63d005
Merge #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:34:51 -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
Ned Deily
2731c049ac
Issue #15184 : Ensure configuration-related environment variables
...
are unset during test execution.
2012-07-21 09:29:54 -07:00
Brett Cannon
636601dfba
Remove a relative import that escaped test.test_importlib.
2012-07-21 09:54:58 -04:00
Ned Deily
df8aa2b325
Issue #15184 : Ensure consistent results of OS X configuration
...
tailoring for universal builds by factoring out common OS X-specific
customizations from sysconfig, distutils.sysconfig, distutils.util,
and distutils.unixccompiler into a new module _osx_support that can
eventually also be used by packaging.
2012-07-21 05:36:30 -07:00
Florent Xicluna
0fd1062a76
Fix test_pprint random dict ordering.
2012-07-21 12:45:02 +02:00
Florent Xicluna
6e571d699f
Fix test_pprint random dict ordering.
2012-07-21 12:44:20 +02:00
Florent Xicluna
6a01fc5d41
Issues #10017 and #14998 : Fix TypeError using pprint on dictionaries with unorderable key.
2012-07-21 11:22:33 +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
Meador Inge
da1ffbc4ee
Issue #15409 : Replace use of deprecated urllib.request.Request methods in http.cookijar
...
Patch by Flávio Ribeiro.
2012-07-20 19:12:04 -05:00
Antoine Pitrou
5e36edbaba
Port additional tests from #14579 (the issue is already fixed).
2012-07-21 00:47:48 +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
Brett Cannon
ed19fcec89
Fix another import error.
2012-07-20 15:42:34 -04:00
Brett Cannon
86ae981da9
Fix an import from the importlib.test move.
2012-07-20 15:40:57 -04:00
Brett Cannon
d382bfc921
Move importlib.test.benchmark to Tools/importbench to make it more
...
visible and to place it with other micro-benchmarks (e.g.
stringbench).
2012-07-20 14:54:53 -04:00
Brett Cannon
45a5e3afe5
Issue #15168 : Move importlb.test to test.test_importlib.
...
This should make the Linux distros happy as it is now easier to leave
importlib's tests out of their base Python distribution.
2012-07-20 14:48:53 -04:00
Brett Cannon
4afc1c08d0
Merge
2012-07-20 14:22:27 -04:00
Brett Cannon
6ee9695270
Issue #15091 : Call importlib.invalidate_caches() and reactivate a test
...
of importing a symlinked package.
2012-07-20 14:22:04 -04:00
Brett Cannon
ba52586f76
Running the importlib tests from test_import is redundant as there is
...
no difference anymore between __import__ and importlib.__import__.
2012-07-20 14:01:34 -04:00
Meador Inge
b17ad53e39
Issue #15406 : Fix deprecation warning in ctypes test_bitfields.py
...
Patch by Flávio Ribeiro.
2012-07-20 12:52:42 -05: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
Nick Coghlan
be7e49fd82
Close #15386 : There was a loophole that meant importlib.machinery and imp would sometimes reference an uninitialised copy of importlib._bootstrap
2012-07-20 23:40:09 +10:00
Meador Inge
8fda359095
Issue #15401 : Fix typo in inspect.getclosurevars docstring.
2012-07-19 21:33:21 -05:00
Hynek Schlawack
26fe37dd3f
#1492704 : Backout and wait for 3.4
2012-07-19 21:41:02 +02:00
Hynek Schlawack
77d3283370
#1492704 : Make shutil.copyfile() raise a distinct SameFileError
...
Patch by Atsuo Ishimoto.
2012-07-19 20:23:49 +02:00
Meador Inge
7506dab2e8
Issue #6493 : Fix handling of c_uint32 bitfields with width of 32 on Windows.
2012-07-19 00:14:35 -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
Nick Coghlan
76e077001d
Close #15387 : inspect.getmodulename() now uses a new importlib.machinery.all_suffixes() API rather than the deprecated inspect.getmoduleinfo()
2012-07-18 23:14:57 +10:00
Vinay Sajip
90db661b43
Closes #15307 : symlinks now work on OS X with framework Python builds. Patch by Ronald Oussoren.
2012-07-17 17:33:46 +01:00
Hynek Schlawack
11718620ef
Use posixpath.join() explicitely in posixpath.join() test
...
Used os.path.join before which has different semantics on Windows.
2012-07-17 14:29:33 +02: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
Eli Bendersky
f90fc68db4
fix whitespace woes
2012-07-17 15:09:56 +03:00
Eli Bendersky
43cc5f29a8
Optimize tostringlist by taking the stream class outside the function. It's now 2x faster on short calls. Related to #1767933
2012-07-17 15:09:12 +03:00
Nick Coghlan
9455492142
Issue #15314 : Tweak a pkgutil test to hopefully be more Windows friendly
2012-07-17 21:37:58 +10:00
Hynek Schlawack
1815191f17
#15377 : Make posixpath.join() more strict when checking for str/bytes mix
...
Based on a patch by Nick Coghlan.
2012-07-17 13:10:15 +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
9c3cf6b4a0
Merge Issue #15230 OS X buildbot fix from 3.2
2012-07-17 20:43:40 +10: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
1c4eb2c09a
Fix context manager use in posixpath.join() tests
...
The asserts were useless (and buggy).
2012-07-17 10:50:30 +02: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
Eli Bendersky
426e248feb
Preserve the invariant tostring(elem) == b''.join(tostringlist(elem)) and add a test to make sure it keeps working
2012-07-17 05:45:11 +03:00
Gregory P. Smith
daa4c6b2e6
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:49:19 -07: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
49be9ed976
Fix unchecked select.poll reference in setUp and tearDown for
...
platforms that don't have it.
2012-07-16 13:39:10 -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
2a86b25323
Fix the with_poll tests for platforms without poll. missing import.
2012-07-16 13:35:20 -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
Vinay Sajip
8cffdd9ca2
Closes #15367 : Corrected computation of include locations for source builds on Windows. Thanks to Richard Oudkerk for the bug report and patch.
2012-07-16 18:30:03 +01:00
Vinay Sajip
048b063780
Closes #15366 : Corrected computation of include location for source builds. Thanks to Richard Oudkerk for the bug report and patch.
2012-07-16 18:24:55 +01:00
Hynek Schlawack
c2d481fbcd
#15238 : Fix xattr related shutil.copystat tests
...
- Loosen up test as Fedora has implicit xattrs
- Actually test the destination for xattrs
Should make Fedora buildbot green again.
2012-07-16 17:11:10 +02:00
Gregory P. Smith
4866266bf4
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:44:49 -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
Ned Deily
274717757d
Issue #13590 : Improve support for OS X Xcode 4:
...
- fix test_distutils and test_sysconfig test failures by
aligning sysconfig and distutils.sysconfig tailoring of
configure variables (as in 2.7)
2012-07-15 21:30:03 -07:00
R David Murray
6159e0956c
#4640 : Add optparse tests for '-xxx' invalid when defining options.
...
Patch by Aaron (hac.man).
2012-07-15 20:12:24 -04:00
Vinay Sajip
e554f8b858
Closes #15361 : Corrected venv prompt in PowerShell activation script.
2012-07-15 21:58:13 +01:00
Larry Hastings
b40380667c
Issue #15202 : Consistently use the name "follow_symlinks" for
...
new parameters in os and shutil functions. Patch by Serhiy Storchaka.
2012-07-15 10:57:38 -07:00
Vinay Sajip
509d87d4a0
Issue #15307 : Skipped test_venv:test_prefixes when run from a venv.
2012-07-15 16:12:54 +01:00
Hynek Schlawack
9ac4d8808f
#15180 : Clarify posixpath.join() error message when mixing str & bytes
2012-07-15 16:46:23 +02:00
Hynek Schlawack
4774946c3b
#15180 : Clarify posixpath.join() error message when mixing str & bytes
2012-07-15 16:21:30 +02:00
Nick Coghlan
8e6e7d39d3
Fix typo in a comment (noticed by Terry Reedy)
2012-07-15 23:13:18 +10:00
Nick Coghlan
9deaa06fe1
Issue #9319 : Remove the workaround for this since fixed problem from pydoc
2012-07-15 22:17:02 +10:00
Nick Coghlan
2824cb507d
Issue #15343 : A lot more than just unicode decoding can go wrong when retrieving a source file
2012-07-15 22:12:14 +10:00
Nick Coghlan
8ecf50474c
Issue #15343 : Handle importlib.machinery.FileFinder instances in pkgutil.walk_packages (et al)
2012-07-15 21:19:18 +10:00
Nick Coghlan
3f94cbf9eb
Actually initialize __main__.__loader__ with loader instances, not the corresponding type objects
2012-07-15 19:10:39 +10:00
Nick Coghlan
8dbe5b5568
Remove a statement that was only added for debugging purposes
2012-07-15 18:29:24 +10:00
Nick Coghlan
37b3b90b02
Note why we can't write an automated test for the code path that brings up the REPL for a bare 'python' call
2012-07-15 18:24:42 +10:00
Nick Coghlan
85e729ec3b
Take the first step in resolving the messy pkgutil vs importlib edge cases by basing pkgutil explicitly on importlib, deprecating its internal import emulation and setting __main__.__loader__ correctly so that runpy still works (Affects #15343 , #15314 , #15357 )
2012-07-15 18:09:52 +10:00
Eli Bendersky
00f402bfcb
Close #1767933 : Badly formed XML using etree and utf-16. Patch by Serhiy Storchaka, with some minor fixes by me
2012-07-15 06:02:22 +03:00
Larry Hastings
ad5ae0456e
- Issue #15238 : shutil.copystat now copies Linux "extended attributes".
2012-07-14 17:55:11 -07:00
Nick Coghlan
2f54b98c8c
Merge fix for #15230 from 3.2
2012-07-15 00:07:43 +10: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
Ned Deily
045bd5340f
Issue #15241 : Fix test_prefixes failure in test_venv due to symlink in
...
tempfile directory path (i.e. on OS X /tmp is actually /private/tmp).
2012-07-13 15:48:04 -07:00
Antoine Pitrou
26c01d7e05
Try other approach to fix issue #15334 .
2012-07-13 22:49:55 +02:00
Antoine Pitrou
2bb3021837
Try other approach to fix issue #15334 .
2012-07-13 22:46:41 +02:00
Antoine Pitrou
b9c7c8260d
Issue #15334 : skip test_dynamic_key when run in non-interactive mode.
...
Patch by Jeremy Kloth.
2012-07-13 21:10:17 +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
c287423cb0
Merge
2012-07-13 20:59:35 +02:00
Antoine Pitrou
c27ace688c
Issue #15338 : skip test_UNC_path when the current user doesn't have enough permissions to access the path.
2012-07-13 20:59:19 +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
Brett Cannon
a6473f9cfd
Issues #15169 , #14599 : Make PyImport_ExecCodeModuleWithPathnames() use
...
Lib/imp.py for imp.source_from_cache() instead of its own C version.
Also change PyImport_ExecCodeModuleObject() to not infer the source
path from the bytecode path like
PyImport_ExecCodeModuleWithPathnames() does. This makes the function
less magical.
This also has the side-effect of removing all uses of MAXPATHLEN in
Python/import.c which can cause failures on really long filenames.
2012-07-13 13:57:03 -04: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
Ned Deily
c65ef9bf55
Issue #4832 : Modify IDLE to save files with .py extension by
...
default on Windows and OS X as it already does with X11 Tk.
2012-07-09 18:16:11 -07:00
Eli Bendersky
8a80502d2c
Issue #15296 : Fix minidom.toxml/toprettyxml for non-unicode encodings. Patch by Serhiy Storchaka, with some minor style adjustments by me.
2012-07-13 09:52:39 +03:00
Antoine Pitrou
5df0204091
For diagnosis, try to list the directory first
2012-07-12 19:50:03 +02:00
Antoine Pitrou
f189e80f23
Small improvements to test_unc_path
2012-07-12 19:48:49 +02:00
Antoine Pitrou
021548cf4c
Try to fix or diagnose buildbot failures
2012-07-12 19:21:43 +02:00
Antoine Pitrou
673eb6a0bb
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:21:31 +02:00
Martin v. Löwis
fa0989fd38
merge 3.2
2012-07-11 09:17:54 +02:00
Martin v. Löwis
ff40aa7b34
merge 3.2
2012-07-11 08:49:24 +02:00
Martin v. Löwis
9ba4545f97
merge 3.2
2012-07-11 08:29:55 +02:00
Brett Cannon
461c813164
Issue #15111 : When a module was imported using a 'from import'
...
statement (e.g. ``from distutils import msvc9compiler``) that triggers
an ImportError of its own (e.g. the non-existence of winreg), let that
exception propagate instead of raising a generic ImportError for the
module being requested (e.g. msvc9compiler).
2012-07-10 10:05:00 -04:00
Martin v. Löwis
7d30b80a4e
Issue #15315 : Support VS 2010 in distutils cygwincompiler.
2012-07-10 07:07:06 +02:00
Brett Cannon
77b2abd094
Issue #15167 (as part of #13959 ): imp.get_magic() is no implemented in
...
Lib/imp.py.
2012-07-09 16:09:00 -04:00
Antoine Pitrou
59b9a7bc61
Backport test for nested namespace packages.
2012-07-09 21:23:58 +02:00
Antoine Pitrou
b2dd880e0a
Issue #15294 : Fix a regression in pkgutil.extend_path()'s handling of nested namespace packages.
2012-07-09 21:23:58 +02:00
Martin v. Löwis
7df5e5858b
merge 3.2
2012-07-09 20:53:03 +02:00
Martin v. Löwis
1d0f6dd7db
normalize whitespace
2012-07-09 20:52:40 +02:00
Martin v. Löwis
79007fa05d
merge 3.2
2012-07-09 20:48:56 +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
Brett Cannon
19a2f5961c
Issue #15056 : imp.cache_from_source() and source_from_cache() raise
...
NotimplementedError when sys.implementation.cache_tag is None.
Thanks to Pranav Ravichandran for taking an initial stab at the patch.
2012-07-09 13:58:07 -04:00
Brett Cannon
bf7eab077f
Issue #15256 : Re-use the ImportError exception message as defined by
...
importlib._bootstrap in imp to fix a grammatical mistake.
Thanks to Marc Abramowitz for the patch.
2012-07-09 13:24:34 -04:00
Terry Jan Reedy
cc4cffb8fa
Merge with 3.2 Issue 12510
2012-07-09 00:15:14 -04: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
612a815820
revert the changes done for issue14826 - quoting witin Request is not desirable.
2012-07-08 18:00:47 -07:00
Senthil Kumaran
168456df11
revert the changes done for issue14826 - quoting witin Request is not desirable.
2012-07-08 17:47:25 -07:00
Amaury Forgeot d'Arc
1ced17dfe9
Issue #15110 : Copy same docstring as other '_exec_module' methods.
2012-07-08 21:03:01 +02:00
Amaury Forgeot d'Arc
ae7b8f07c1
Issue #15110 : Also hide importlib frames when importing a builtin module fails.
2012-07-08 20:52:38 +02:00
Benjamin Peterson
9ed37433c4
test AST base type garbage collection
2012-07-08 11:13:36 -07:00
Vinay Sajip
4d378d8349
Closes #15281 , #15283 : Don't make venv scripts executable, but copy source mode instead, and provide better help for pyvenv.
2012-07-08 17:50:42 +01:00
Nick Coghlan
07c4e33c07
Issue 14814: The new systematic tests aren't just about error reporting any more - change names accordingly. Added and tweaked some example to ensure they were covering the intended code paths
2012-07-08 23:06:45 +10:00
Antoine Pitrou
88bf5ca63b
Merge
2012-07-08 14:00:06 +02:00
Antoine Pitrou
5d62a61b58
Fix test_inspect messing up with linecache.cache.
2012-07-08 13:48:46 +02:00
Nick Coghlan
27396a1807
Issue 14814: Remove dead function (noticed by Serhiy Storchaka)
2012-07-08 21:38:12 +10:00
Antoine Pitrou
6803855ecf
Fix test failure under Windows
2012-07-08 13:16:15 +02:00
Florent Xicluna
3f4ce635ee
Issue #11022 and #15287 : correctly remove the TESTFN file in test_builtin.
2012-07-08 12:08:45 +02:00
Antoine Pitrou
bc07a5c913
Issue #15110 : Fix the tracebacks generated by "import xxx" to not show the importlib stack frames.
2012-07-08 12:01:27 +02:00
Senthil Kumaran
25bfb529bd
issue 14826 - Address the buildbot failure quote of url is the required change ( explanation msg164973)
2012-07-08 02:16:08 -07:00
Senthil Kumaran
45ce4dc73e
issue 14826 - Address the buildbot failure ( explanation msg164973)
2012-07-08 02:08:48 -07:00
Ross Lagerwall
8d459f0cb8
#15284 : Skip {send,recv}msg tests with disabled IPv6
...
Patch by Brian Brazil.
2012-07-08 09:53:57 +02:00
Nick Coghlan
297b143c6d
Issue 14814: Further error case testing coverage and cleanups
2012-07-08 17:11:04 +10:00
Senthil Kumaran
540715a369
Fix issue14826 - make urllib.request.Request quoted url consistent with URLOpener open method.
...
Patch contributed by Stephen Thorne.
2012-07-07 17:15:52 -07:00