Ezio Melotti
c28f6fa505
#11420 : make test suite pass with -B/DONTWRITEBYTECODE set. Initial patch by Thomas Wouters.
2013-03-16 19:48:51 +02:00
Andrew Svetlov
737fb89dd1
Issue #16714 : use 'raise' exceptions, don't 'throw'.
...
Patch by Serhiy Storchaka.
2012-12-18 21:14:22 +02:00
Antoine Pitrou
33d15f7c85
Port import fixes from 2.7.
2012-01-25 18:01:45 +01:00
Antoine Pitrou
dd21f68963
Port remaining test fixes, and fix test_importlib too.
2012-01-25 03:00:57 +01:00
Antoine Pitrou
2be60afb7e
Issue #11235 : Fix OverflowError when trying to import a source file whose modification time doesn't fit in a 32-bit timestamp.
2012-01-24 17:44:06 +01:00
Antoine Pitrou
7c9907e565
Fix no-op tests in importlib.
2011-12-30 21:25:15 +01:00
Meador Inge
416f12ddb3
Issue #13591 : import_module potentially imports a module twice.
2011-12-14 22:23:46 -06:00
Vinay Sajip
5bdae3bb7c
Closes #12291 : Fixed bug which was found when doing multiple loads from one stream.
2011-07-02 16:42:47 +01:00
Victor Stinner
45323a890a
(Merge 3.1) Issue #11614 : Fix importlib tests for the new __hello__ module
2011-05-16 16:59:49 +02:00
Victor Stinner
272e24356e
Issue #11614 : Fix importlib tests for the new __hello__ module
2011-05-16 16:57:18 +02:00
Ezio Melotti
4969f709cc
#11515 : Merge with 3.1.
2011-03-15 05:59:46 +02:00
Ezio Melotti
42da663e6f
#11515 : fix several typos. Patch by Piotr Kasprzyk.
2011-03-15 05:18:48 +02:00
Raymond Hettinger
d958ea70bc
Issue 10899: Remove function type annotations from the stdlib
2011-01-13 19:08:04 +00:00
Raymond Hettinger
cd92f37582
Issue 10899: Remove function type annotations from the stdlib
2011-01-13 02:31:25 +00:00
Ezio Melotti
19f2aeba67
Merged revisions 86596 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r86596 | ezio.melotti | 2010-11-20 21:04:17 +0200 (Sat, 20 Nov 2010) | 1 line
#9424 : Replace deprecated assert* methods in the Python test suite.
........
2010-11-21 01:30:29 +00:00
Ezio Melotti
b3aedd4862
#9424 : Replace deprecated assert* methods in the Python test suite.
2010-11-20 19:04:17 +00:00
Brett Cannon
0ffe6a9760
Fix a minor inconsistency in capitalization for the 'No module named' exception
...
message in importlib.
Thanks to Éric Araujo for spotting the inconsistency.
2010-11-18 03:03:04 +00:00
Florent Xicluna
764d612f5e
Remove redundant context manager.
2010-09-03 19:55:26 +00:00
Brett Cannon
a7ceeb335f
OSError is the exception raised when one tries to create a directory that
...
already exists, not IOError.
Part of the continuing saga of issue #9572 .
2010-08-26 21:07:13 +00:00
Brett Cannon
1d6569cfb9
Fix a bug where an attribute was lacking an object to work off of.
...
Related to the fix for issue #9572 . Thanks to Łukasz Czuja for catching the
bug.
2010-08-24 21:04:05 +00:00
Brett Cannon
ee6d64773b
One of the joys of having test_multiprocessing occasionally execute after
...
test_importlib is that it discovers special little race conditions. For
instance, it turns out that importlib would throw an exception if two different
Python processes both tried to create the __pycache__ directory as one process
would succeed, causing the other process to fail as it didn't expect to get any
"help". So now importlib simply stays calm and just accepts someone else did
the work of creating the __pycache__ directory for it, moving on with life.
Closes issue #9572 .
2010-08-22 22:19:11 +00:00
Brett Cannon
186335bd5c
Make sure that no __pycache__ directory is needlessly left behind when testing
...
imports with an empty string in sys.path.
2010-08-22 22:11:06 +00:00
Brett Cannon
8d18907a2e
While not strictly necessary thanks to the odd ABC inheritance done through
...
importlib._bootstrap, add the optional methods for importlib.abc.SourceLoader
for completeness.
2010-08-22 20:38:47 +00:00
Brett Cannon
5db0c94072
Add importlib benchmarks which try to be "realistic" by importing the decimal
...
module which is the largest module in the stdlib.
2010-07-22 07:40:56 +00:00
Brett Cannon
cbe1a4e28f
Add comma grouping to max result so it's easier to read.
2010-07-16 19:26:23 +00:00