- 14 Jun, 2013 2 commits
-
-
Brett Cannon authored
-
Brett Cannon authored
ModuleNotFoundError.
-
- 13 Jun, 2013 9 commits
-
-
Serhiy Storchaka authored
-
Serhiy Storchaka authored
-
Serhiy Storchaka authored
-
Brett Cannon authored
when None in sys.modules.
-
Brett Cannon authored
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.
-
Brett Cannon authored
instead of manually listing tests for test.support.run_unittest().
-
Brett Cannon authored
reaped in all situations.
-
Brett Cannon authored
-
Brett Cannon authored
unittest.main().
-
- 12 Jun, 2013 9 commits
-
-
Brett Cannon authored
-
Brett Cannon authored
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.
-
Brett Cannon authored
-
Serhiy Storchaka authored
-
Serhiy Storchaka authored
-
Roger Serwy authored
-
Roger Serwy authored
-
Roger Serwy authored
-
Roger Serwy authored
-
- 11 Jun, 2013 8 commits
-
-
Ned Deily authored
-
Ned Deily authored
-
Brett Cannon authored
-
Brett Cannon authored
-
Brett Cannon authored
test_importlib.
-
Brett Cannon authored
-
Roger Serwy authored
-
Roger Serwy authored
Original patch by Sarah K.
-
- 10 Jun, 2013 9 commits
-
-
Benjamin Peterson authored
-
Benjamin Peterson authored
-
Richard Oudkerk authored
-
Richard Oudkerk authored
-
Richard Oudkerk authored
-
Richard Oudkerk authored
-
Christian Heimes authored
-
Ronald Oussoren authored
AI_NUMERICSERV isn't defined on OSX 10.4.
-
Ronald Oussoren authored
AI_NUMERICSERV isn't defined on OSX 10.4.
-
- 09 Jun, 2013 3 commits
-
-
Serhiy Storchaka authored
-
Serhiy Storchaka authored
-
Christian Heimes authored
-