Brett Cannon
33915eba7c
Issue #17222 : Raise FileExistsError when py_compile.compile would
...
overwrite a symlink or non-regular file with a regular file.
2013-06-14 18:33:00 -04:00
Ned Deily
7bff3cbe3d
Issue #18149 : Add filecmp.clear_cache() to manually clear the filecmp cache.
...
Patch by Mark Levitt
2013-06-14 15:19:11 -07:00
Brett Cannon
3fe35e6503
Issue #18193 : Add importlib.reload(), documenting (but not
...
implementing in code) the deprecation of imp.reload().
Thanks to Berker Peksag for the patch.
2013-06-14 15:04:26 -04:00
Brett Cannon
6f1057605b
Remove a dead import line.
...
Noticed by Serhly Storchaka.
2013-06-14 10:42:48 -04:00
Christian Heimes
09ec23f120
Issue #15172 : Document NASM 2.10+ as requirement for building OpenSSL 1.0.1 on Windows
2013-06-14 15:48:16 +02:00
Christian Heimes
c81549f476
Issue #15172 : Document NASM 2.10+ as requirement for building OpenSSL 1.0.1 on Windows
2013-06-14 15:40:28 +02:00
Christian Heimes
200bb1b08c
Simplify return value of ssl.get_default_verify_paths
...
prefix function with PySSL_, too. Other module level functions have a prefix, too.
2013-06-14 15:14:29 +02:00
Christian Heimes
13728a57c8
comparing with http://hg.python.org/cpython/
...
searching for changes
changeset: 84118:98343392fd81
tag: tip
user: Christian Heimes <christian@cheimes.de>
date: Fri Jun 14 14:54:48 2013 +0200
files: PC/VS9.0/_socket.vcproj PC/VS9.0/_ssl.vcproj
description:
Fix compilation of Python with VS 2008
Contrary to VS 2010 the compiler doesn't like semicolon seperated
dependency names
2013-06-14 15:01:03 +02:00
Ethan Furman
0fff6ad1a1
Closes issue 17947. Adds PEP-0435 (Enum, IntEnum) to the stdlib.
2013-06-14 00:30:27 -07:00
Brett Cannon
58f2efb968
Move test_pep352 over to unittest.main()
2013-06-13 21:18:43 -04:00
Brett Cannon
0a140668fa
Issue #18200 : Update the stdlib (except tests) to use
...
ModuleNotFoundError.
2013-06-13 20:57:26 -04:00
Serhiy Storchaka
9702a17a6a
Issue #18048 : Merge test_pep263.py and test_coding.py into test_source_encoding.py.
2013-06-13 10:08:00 +03:00
Serhiy Storchaka
07c805d0fc
Issue #18048 : Rename test_coding.py to test_source_encoding.py.
2013-06-13 09:50:42 +03:00
Serhiy Storchaka
29f2d73068
Issue #18048 : Rename test_pep263.py to test_source_encoding.py.
2013-06-13 09:48:15 +03:00
Brett Cannon
e5b25df16d
Issue #15767 : Add an explicit test for raising ModuleNotFoundError
...
when None in sys.modules.
2013-06-12 23:38:50 -04:00
Brett Cannon
8f5ac5106e
Issue #15767 : Touch up ModuleNotFoundError usage by import.
...
Forgot to raise ModuleNotFoundError when None is found in sys.modules.
This led to introducing the C function PyErr_SetImportErrorSubclass()
to make setting ModuleNotFoundError easier.
Also updated the reference docs to mention ModuleNotFoundError
appropriately. Updated the docs for ModuleNotFoundError to mention the
None in sys.modules case.
Lastly, it was noticed that PyErr_SetImportError() was not setting an
exception when returning None in one case. That issue is now fixed.
2013-06-12 23:29:18 -04:00
Brett Cannon
3e9a9ae09d
Update various test modules to use unittest.main() for test discovery
...
instead of manually listing tests for test.support.run_unittest().
2013-06-12 21:25:59 -04:00
Brett Cannon
e382b5868a
Partially revert changeset #281857369a78 to make sure threads are
...
reaped in all situations.
2013-06-12 21:25:23 -04:00
Brett Cannon
c9a1bfed5d
Move test___all__ over to unittest.main() and use ModuleNotFoundError
2013-06-12 20:12:30 -04:00
Brett Cannon
603dcf2714
Spruce up test_xmlrpc by using ModuleNotFoundError and moving to
...
unittest.main().
2013-06-12 20:04:19 -04:00
Brett Cannon
d5b4e1d891
Move test_zipfile to unittest.main()
2013-06-12 19:57:19 -04:00
Brett Cannon
b1611e2772
Issue #15767 : Introduce ModuleNotFoundError, a subclass of
...
ImportError.
The exception is raised by import when a module could not be found.
Technically this is defined as no viable loader could be found for the
specified module. This includes ``from ... import`` statements so that
the module usage is consistent for all situations where import
couldn't find what was requested.
This should allow for the common idiom of::
try:
import something
except ImportError:
pass
to be updated to using ModuleNotFoundError and not accidentally mask
ImportError messages that should propagate (e.g. issues with a
loader).
This work was driven by the fact that the ``from ... import``
statement needed to be able to tell the difference between an
ImportError that simply couldn't find a module (and thus silence the
exception so that ceval can raise it) and an ImportError that
represented an actual problem.
2013-06-12 16:59:46 -04:00
Brett Cannon
638ce0779b
Move code from test_importhooks into test_zipimport.
2013-06-12 15:57:01 -04:00
Serhiy Storchaka
f15ffe0ee5
Add tests for issue #18183 .
2013-06-12 09:28:20 +03:00
Serhiy Storchaka
31b1c8bbde
Add tests for issue #18183 .
2013-06-12 09:20:44 +03:00
Roger Serwy
6d844c5db9
#18196 : merge with 3.3
2013-06-11 22:25:34 -05:00
Roger Serwy
f467521927
#18196 : Avoid displaying spurious SystemExit tracebacks.
2013-06-11 22:25:14 -05:00
Roger Serwy
c2efeb61b9
#5492 : merge with 3.3
2013-06-11 22:13:51 -05:00
Roger Serwy
036e84924a
#5492 : Avoid traceback when exiting IDLE caused by a race condition.
2013-06-11 22:13:17 -05:00
Ned Deily
982c6efeb5
Issue #18187 : merge from 3.3
2013-06-11 14:40:23 -07:00
Ned Deily
3886120428
Issue #18187 : Fix broken link in venv documentation. Patch by Berker Peksag.
2013-06-11 14:38:39 -07:00
Brett Cannon
12d400db65
explanatory comment
2013-06-11 17:34:04 -04:00
Brett Cannon
865b2925dd
typo fix
2013-06-11 17:22:39 -04:00
Brett Cannon
68133fdcbe
Issue #18158 : delete test_importhooks. Redundant in the face of
...
test_importlib.
2013-06-11 17:12:30 -04:00
Brett Cannon
d5e6f2e200
Issue #18157 : stop using imp.load_module() in imp.
2013-06-11 17:09:36 -04:00
Roger Serwy
30b4131b41
#17511 : merge with 3.3.
2013-06-10 23:02:56 -05:00
Roger Serwy
391f469681
#17511 : Keep IDLE find dialog open after clicking "Find Next".
...
Original patch by Sarah K.
2013-06-10 23:01:20 -05:00
Benjamin Peterson
3164f5d565
merge 3.3 ( #18183 )
2013-06-10 09:24:01 -07:00
Benjamin Peterson
7e30373126
remove MAX_MAXCHAR because it's unsafe for computing maximum codepoitn value (see #18183 )
2013-06-10 09:19:46 -07:00
Richard Oudkerk
a35a128acc
Merge.
2013-06-10 16:31:39 +01:00
Richard Oudkerk
0e547b66dc
Issue #18174 : Fix fd leaks in tests.
2013-06-10 16:29:19 +01:00
Richard Oudkerk
cac17b4d78
Merge.
2013-06-10 15:45:30 +01:00
Richard Oudkerk
409f90237c
Issue #18180 : Fix ref leak in _PyImport_GetDynLoadWindows().
2013-06-10 15:38:54 +01:00
Christian Heimes
75b8426698
fixd refleak
2013-06-10 10:47:22 +02:00
Ronald Oussoren
36451f076b
(3.3->default) Ensure that the fix for #17269 also works on OSX 10.4
...
AI_NUMERICSERV isn't defined on OSX 10.4.
2013-06-10 10:37:12 +02:00
Ronald Oussoren
a822d36675
Ensure that the fix for #17269 also works on OSX 10.4
...
AI_NUMERICSERV isn't defined on OSX 10.4.
2013-06-10 10:36:28 +02:00
Serhiy Storchaka
531381f207
Issue #16102 : Make uuid._netbios_getnode() work again on Python 3.
2013-06-09 21:10:13 +03:00
Serhiy Storchaka
6f50b810b7
Issue #16102 : Make uuid._netbios_getnode() work again on Python 3.
2013-06-09 21:08:05 +03:00
Christian Heimes
46bebee25f
Issue #17134 : Add ssl.enum_cert_store() as interface to Windows' cert store.
2013-06-09 19:03:31 +02:00
Christian Heimes
142ec2c014
get_default_verify_paths doesn't belong inside the ifdef block
2013-06-09 18:29:54 +02:00