summaryrefslogtreecommitdiffstats
path: root/Lib/test
Commit message (Collapse)AuthorAgeFilesLines
* Issue #18076: Introduce imoportlib.util.decode_source().Brett Cannon2013-06-161-0/+21
| | | | | | | The helper function makes it easier to implement imoprtlib.abc.InspectLoader.get_source() by making that function require just the raw bytes for source code and handling all other details.
* Check that warnings.showwarning() is not changed.Brett Cannon2013-06-161-1/+6
|
* Issues #18058, 18057: Make importlib._bootstrap.NamespaceLoaderBrett Cannon2013-06-161-5/+24
| | | | | conform the the InspectLoader ABC. Perk of this is that runpy/-m can now work with namespace packages.
* Issue #17177: The imp module is pending deprecation.Brett Cannon2013-06-167-22/+22
| | | | | | To make sure there is no issue with code that is both Python 2 and 3 compatible, there are no plans to remove the module any sooner than Python 4 (unless the community moves to Python 3 solidly before then).
* Stop using the deprecated unittest.TestCase.assertRaisesRegexp()Brett Cannon2013-06-161-5/+5
|
* Make test_builtin work when executed directlyBrett Cannon2013-06-161-1/+4
|
* Issue #17177: stop using imp in test_importlibBrett Cannon2013-06-1516-76/+78
|
* Issue #17177: Stop using imp in zipfileBrett Cannon2013-06-151-2/+2
|
* Issue #17177: Stop using imp in a bunch of testsBrett Cannon2013-06-157-15/+17
|
* Merge with 3.3Andrew Kuchling2013-06-151-0/+13
|\
| * #18113: Objects associated to a curses.panel object with set_userptr() were ↵Andrew Kuchling2013-06-151-0/+13
| | | | | | | | | | | | leaked. Reported by Atsuo Ishimoto.
* | Issue #17177: Stop using imp with py_compileBrett Cannon2013-06-151-2/+2
| |
* | Issue #17177: stop using imp for compileall.Brett Cannon2013-06-151-27/+23
| |
* | make test more robust under WindowsBrett Cannon2013-06-151-1/+1
| |
* | Issue #17907: touch up the code for imp.new_module().Brett Cannon2013-06-152-1/+116
| |
* | Closes issue 17947. Adds PEP-0435 (Adding an Enum type to the Python ↵Ethan Furman2013-06-141-0/+921
| | | | | | | | | | | | | | standard library). Missing files added. News entry added.
* | Issue #18192: Introduce importlib.util.MAGIC_NUMBER and document theBrett Cannon2013-06-141-0/+11
| | | | | | | | deprecation of imp.get_magic().
* | mergeBrett Cannon2013-06-141-0/+7
|\ \
| * | Issue #18149: Add filecmp.clear_cache() to manually clear the filecmp cache.Ned Deily2013-06-141-0/+7
| | | | | | | | | | | | Patch by Mark Levitt
* | | Issue #17222: Raise FileExistsError when py_compile.compile wouldBrett Cannon2013-06-141-0/+20
|/ / | | | | | | overwrite a symlink or non-regular file with a regular file.
* | Issue #18193: Add importlib.reload(), documenting (but notBrett Cannon2013-06-141-0/+12
| | | | | | | | | | | | implementing in code) the deprecation of imp.reload(). Thanks to Berker Peksag for the patch.
* | Remove a dead import line.Brett Cannon2013-06-141-1/+0
| | | | | | | | Noticed by Serhly Storchaka.
* | Move test_pep352 over to unittest.main()Brett Cannon2013-06-141-3/+1
| |
* | Issue #18048: Merge test_pep263.py and test_coding.py into ↵Serhiy Storchaka2013-06-132-87/+76
|\ \ | | | | | | | | | test_source_encoding.py.
| * | Issue #18048: Rename test_pep263.py to test_source_encoding.py.Serhiy Storchaka2013-06-131-0/+0
| | |
* | | Issue #18048: Rename test_coding.py to test_source_encoding.py.Serhiy Storchaka2013-06-131-0/+0
|/ /
* | Issue #15767: Add an explicit test for raising ModuleNotFoundErrorBrett Cannon2013-06-131-0/+7
| | | | | | | | when None in sys.modules.
* | Update various test modules to use unittest.main() for test discoveryBrett Cannon2013-06-1318-108/+24
| | | | | | | | instead of manually listing tests for test.support.run_unittest().
* | Partially revert changeset #281857369a78 to make sure threads areBrett Cannon2013-06-131-1/+11
| | | | | | | | reaped in all situations.
* | Move test___all__ over to unittest.main() and use ModuleNotFoundErrorBrett Cannon2013-06-133-20/+17
| |
* | Spruce up test_xmlrpc by using ModuleNotFoundError and moving toBrett Cannon2013-06-131-22/+7
| | | | | | | | unittest.main().
* | Move test_zipfile to unittest.main()Brett Cannon2013-06-121-7/+1
| |
* | Issue #15767: Introduce ModuleNotFoundError, a subclass ofBrett Cannon2013-06-127-23/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | Move code from test_importhooks into test_zipimport.Brett Cannon2013-06-121-1/+25
| |
* | Add tests for issue #18183.Serhiy Storchaka2013-06-121-3/+14
|\ \ | |/
| * Add tests for issue #18183.Serhiy Storchaka2013-06-121-3/+15
| |
* | Issue #18158: delete test_importhooks. Redundant in the face ofBrett Cannon2013-06-111-250/+0
| | | | | | | | test_importlib.
* | merge 3.3 (#18183)Benjamin Peterson2013-06-101-0/+3
|\ \ | |/
| * remove MAX_MAXCHAR because it's unsafe for computing maximum codepoitn value ↵Benjamin Peterson2013-06-101-0/+3
| | | | | | | | (see #18183)
* | Merge.Richard Oudkerk2013-06-103-1/+5
|\ \ | |/
| * Issue #18174: Fix fd leaks in tests.Richard Oudkerk2013-06-103-1/+5
| |
* | (3.3->default) Ensure that the fix for #17269 also works on OSX 10.4Ronald Oussoren2013-06-101-1/+2
|\ \ | |/ | | | | AI_NUMERICSERV isn't defined on OSX 10.4.
| * Ensure that the fix for #17269 also works on OSX 10.4Ronald Oussoren2013-06-101-1/+2
| | | | | | | | AI_NUMERICSERV isn't defined on OSX 10.4.
* | Issue #17134: Add ssl.enum_cert_store() as interface to Windows' cert store.Christian Heimes2013-06-091-0/+23
| |
* | Issue #18143: Implement ssl.get_default_verify_paths() in order to debugChristian Heimes2013-06-091-0/+13
| | | | | | | | the default locations for cafile and capath.
* | Issue #18038: SyntaxError raised during compilation sources with illegalSerhiy Storchaka2013-06-091-0/+18
|\ \ | |/ | | | | encoding now always contains an encoding name.
| * Issue #18038: SyntaxError raised during compilation sources with illegalSerhiy Storchaka2013-06-091-0/+18
| | | | | | | | encoding now always contains an encoding name.
* | #17691: merge with 3.3.Ezio Melotti2013-06-081-21/+16
|\ \ | |/
| * #17691: test_univnewlines now works with unittest test discovery. Patch by ↵Ezio Melotti2013-06-081-21/+16
| | | | | | | | Zachary Ware.
* | Fixed #18150: duplicate test inside TestSingleDispatchŁukasz Langa2013-06-071-19/+14
| | | | | | | | Thanks to Vajrasky Kok for the patch