Antoine Pitrou 
								
							 
						 
						
							
							
							
							
								
							
							
								c541f8ef40 
								
							 
						 
						
							
							
								
								Issue  #14043 : Speed up importlib's _FileFinder by at least 8x, and add a new importlib.invalidate_caches() function.  
							
							... 
							
							
							
							importlib is now often faster than imp.find_module() at finding modules. 
							
						 
						
							2012-02-20 01:48:16 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Antoine Pitrou 
								
							 
						 
						
							
							
							
							
								
							
							
								581616624d 
								
							 
						 
						
							
							
								
								Port import fixes from 2.7.  
							
							
							
						 
						
							2012-01-25 18:06:07 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Antoine Pitrou 
								
							 
						 
						
							
							
							
							
								
							
							
								33d15f7c85 
								
							 
						 
						
							
							
								
								Port import fixes from 2.7.  
							
							
							
						 
						
							2012-01-25 18:01:45 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Antoine Pitrou 
								
							 
						 
						
							
							
							
							
								
							
							
								157c1263a2 
								
							 
						 
						
							
							
								
								Port remaining test fixes, and fix test_importlib too.  
							
							
							
						 
						
							2012-01-25 03:01:34 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Antoine Pitrou 
								
							 
						 
						
							
							
							
							
								
							
							
								dd21f68963 
								
							 
						 
						
							
							
								
								Port remaining test fixes, and fix test_importlib too.  
							
							
							
						 
						
							2012-01-25 03:00:57 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Antoine Pitrou 
								
							 
						 
						
							
							
							
							
								
							
							
								05f29b7a3a 
								
							 
						 
						
							
							
								
								Make test work under 32-bit systems, and when invoked through Lib/test/regrtest.py  
							
							... 
							
							
							
							(rather than `-m test.regrtest`) 
							
						 
						
							2012-01-25 01:35:26 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Antoine Pitrou 
								
							 
						 
						
							
							
							
							
								
							
							
								abaf89b2be 
								
							 
						 
						
							
							
								
								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:45:50 +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 
								
							 
						 
						
							
							
							
							
								
							
							
								28f8bee5c8 
								
							 
						 
						
							
							
								
								Issue  #13645 : fix test_import failure when run immediately after test_coding.  
							
							
							
						 
						
							2011-12-21 15:50:42 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Antoine Pitrou 
								
							 
						 
						
							
							
							
							
								
							
							
								5136ac0ca2 
								
							 
						 
						
							
							
								
								Issue  #13645 : pyc files now contain the size of the corresponding source  
							
							... 
							
							
							
							code, to avoid timestamp collisions (especially on filesystems with a low
timestamp resolution) when checking for freshness of the bytecode. 
							
						 
						
							2012-01-13 18:52:16 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Antoine Pitrou 
								
							 
						 
						
							
							
							
							
								
							
							
								f0a49a9e27 
								
							 
						 
						
							
							
								
								Issue  #13645 : fix test_import failure when run immediately after test_coding.  
							
							
							
						 
						
							2011-12-21 15:53:16 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Charles-François Natali 
								
							 
						 
						
							
							
							
							
								
							
							
								0c929d9d39 
								
							 
						 
						
							
							
								
								Issue  #13303 : Fix bytecode file default permission.  
							
							
							
						 
						
							2011-11-10 19:12:29 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Charles-François Natali 
								
							 
						 
						
							
							
							
							
								
							
							
								c12e093795 
								
							 
						 
						
							
							
								
								Back out changeset b6336ba796d4 until fix for  #13303 .  
							
							
							
						 
						
							2011-11-08 20:38:11 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Charles-François Natali 
								
							 
						 
						
							
							
							
							
								
							
							
								31846c4372 
								
							 
						 
						
							
							
								
								test_import: test_execute_bit_not_copied() was actually a no-op: enable it.  
							
							
							
						 
						
							2011-11-08 19:43:09 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Charles-François Natali 
								
							 
						 
						
							
							
							
							
								
							
							
								69d44fdb90 
								
							 
						 
						
							
							
								
								test_import: test_execute_bit_not_copied() was actually a no-op: fix it.  
							
							
							
						 
						
							2011-11-08 19:42:02 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Charles-François Natali 
								
							 
						 
						
							
							
							
							
								
							
							
								035018d078 
								
							 
						 
						
							
							
								
								os.geteuid() may not be available...  
							
							
							
						 
						
							2011-10-04 23:35:47 +02:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Charles-François Natali 
								
							 
						 
						
							
							
							
							
								
							
							
								79164c8c71 
								
							 
						 
						
							
							
								
								Issue  #11956 : Always skip test_import.test_unwritable_directory when run as  
							
							... 
							
							
							
							root, since the semantics varies across Unix variants. 
							
						 
						
							2011-10-04 20:40:58 +02:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Charles-François Natali 
								
							 
						 
						
							
							
							
							
								
							
							
								a13b1faa78 
								
							 
						 
						
							
							
								
								Issue  #11956 : Skip test_import.test_unwritable_directory on FreeBSD when run as  
							
							... 
							
							
							
							root (directory permissions are ignored). 
							
						 
						
							2011-10-04 19:17:26 +02:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Charles-François Natali 
								
							 
						 
						
							
							
							
							
								
							
							
								09252c4938 
								
							 
						 
						
							
							
								
								os.geteuid() may not be available...  
							
							
							
						 
						
							2011-10-04 23:36:49 +02:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Charles-François Natali 
								
							 
						 
						
							
							
							
							
								
							
							
								5f99c912c8 
								
							 
						 
						
							
							
								
								Issue  #11956 : Always skip test_import.test_unwritable_directory when run as  
							
							... 
							
							
							
							root, since the semantics varies across Unix variants. 
							
						 
						
							2011-10-04 20:41:52 +02:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Charles-François Natali 
								
							 
						 
						
							
							
							
							
								
							
							
								e39b112aea 
								
							 
						 
						
							
							
								
								Issue  #11956 : Skip test_import.test_unwritable_directory on FreeBSD when run as  
							
							... 
							
							
							
							root (directory permissions are ignored). 
							
						 
						
							2011-10-04 19:19:21 +02:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Victor Stinner 
								
							 
						 
						
							
							
							
							
								
							
							
								a1fe1f8dcf 
								
							 
						 
						
							
							
								
								Merge 3.2: Issue  #7732 : Don't open a directory as a file anymore while  
							
							... 
							
							
							
							importing a module. Ignore the direcotry if its name matchs the module name
(e.g.  "__init__.py") and raise a ImportError instead. 
							
						 
						
							2011-09-23 18:59:08 +02:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Victor Stinner 
								
							 
						 
						
							
							
							
							
								
							
							
								53ffdc53bf 
								
							 
						 
						
							
							
								
								Issue  #7732 : Don't open a directory as a file anymore while importing a  
							
							... 
							
							
							
							module. Ignore the direcotry if its name matchs the module name (e.g.
"__init__.py") and raise a ImportError instead. 
							
						 
						
							2011-09-23 18:54:40 +02:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Victor Stinner 
								
							 
						 
						
							
							
							
							
								
							
							
								bf816223df 
								
							 
						 
						
							
							
								
								Issue  #12451 : Add support.create_empty_file()  
							
							... 
							
							
							
							We don't need to create a temporary buffered binary or text file object just to
create an empty file.
Replace also os.fdopen(handle).close() by os.close(handle). 
							
						 
						
							2011-06-30 23:25:47 +02:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Antoine Pitrou 
								
							 
						 
						
							
							
							
							
								
							
							
								59cc6847a9 
								
							 
						 
						
							
							
								
								Try to make test_import a bit more robust  
							
							
							
						 
						
							2011-03-21 19:05:18 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Antoine Pitrou 
								
							 
						 
						
							
							
							
							
								
							
							
								46719af05a 
								
							 
						 
						
							
							
								
								Try to make test_import a bit more robust  
							
							
							
						 
						
							2011-03-21 19:05:02 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Brett Cannon 
								
							 
						 
						
							
							
							
							
								
							
							
								ecc2db5152 
								
							 
						 
						
							
							
								
								Remove an overly specific exception message test.  
							
							
							
						 
						
							2011-03-16 20:11:52 -04:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									R. David Murray 
								
							 
						 
						
							
							
							
							
								
							
							
								ce4b170c5a 
								
							 
						 
						
							
							
								
								#4236 : avoid possible Fatal Error when import is called from __del__  
							
							... 
							
							
							
							Patch by Simon Cross, crasher test code by Martin von Löwis. 
							
						 
						
							2010-12-14 23:06:25 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Benjamin Peterson 
								
							 
						 
						
							
							
							
							
								
							
							
								e048797991 
								
							 
						 
						
							
							
								
								close open file from find_module()  
							
							
							
						 
						
							2010-10-30 23:06:57 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Benjamin Peterson 
								
							 
						 
						
							
							
							
							
								
							
							
								1c87e2943a 
								
							 
						 
						
							
							
								
								condense  
							
							
							
						 
						
							2010-10-30 23:04:49 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Benjamin Peterson 
								
							 
						 
						
							
							
							
							
								
							
							
								0bbf9c99d6 
								
							 
						 
						
							
							
								
								kill pointless function imports  
							
							
							
						 
						
							2010-10-30 23:01:58 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Benjamin Peterson 
								
							 
						 
						
							
							
							
							
								
							
							
								1a7127f6df 
								
							 
						 
						
							
							
								
								remove useless assignment  
							
							
							
						 
						
							2010-10-30 23:00:54 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Georg Brandl 
								
							 
						 
						
							
							
							
							
								
							
							
								1c2a7b7a69 
								
							 
						 
						
							
							
								
								Better check for "any optimize option given".  
							
							
							
						 
						
							2010-10-14 07:34:56 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Georg Brandl 
								
							 
						 
						
							
							
							
							
								
							
							
								fb3c84a8d9 
								
							 
						 
						
							
							
								
								#9964 : fix running test_import under -O or -OO.  
							
							
							
						 
						
							2010-10-14 07:24:28 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Florent Xicluna 
								
							 
						 
						
							
							
							
							
								
							
							
								c9c29e2ab2 
								
							 
						 
						
							
							
								
								I get it wrong in r84097: s/relative/absolute/  
							
							
							
						 
						
							2010-08-16 19:03:05 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Florent Xicluna 
								
							 
						 
						
							
							
							
							
								
							
							
								27354ccec9 
								
							 
						 
						
							
							
								
								Use test.support and unittest features.  Fix duplicated test (bad merge in r79033).  Fix comment for issue  #7902 .  
							
							
							
						 
						
							2010-08-16 18:41:19 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Victor Stinner 
								
							 
						 
						
							
							
							
							
								
							
							
								6c6f851eae 
								
							 
						 
						
							
							
								
								Issue  #9425 : skip tests if a filename is not encodable  
							
							
							
						 
						
							2010-08-07 10:09:35 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Brett Cannon 
								
							 
						 
						
							
							
							
							
								
							
							
								42e54b29b9 
								
							 
						 
						
							
							
								
								Stop shadowing a test class.  
							
							
							
						 
						
							2010-07-23 14:45:19 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Brett Cannon 
								
							 
						 
						
							
							
							
							
								
							
							
								1f27479e26 
								
							 
						 
						
							
							
								
								Explicitly test relative imports by reusing importlib tests.  
							
							... 
							
							
							
							Closes issue 8392. Thanks Virgil Dupras for the initial patch. 
							
						 
						
							2010-07-23 14:03:16 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Brett Cannon 
								
							 
						 
						
							
							
							
							
								
							
							
								2cab50b937 
								
							 
						 
						
							
							
								
								Make test_import a little bit more robust for cleaning up after itself in the  
							
							... 
							
							
							
							face of a failure. 
							
						 
						
							2010-07-03 01:32:48 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Benjamin Peterson 
								
							 
						 
						
							
							
							
							
								
							
							
								556d8001df 
								
							 
						 
						
							
							
								
								Merged revisions 81380 via svnmerge from  
							
							... 
							
							
							
							svn+ssh://pythondev@svn.python.org/python/trunk
........
  r81380 | brett.cannon | 2010-05-20 13:37:55 -0500 (Thu, 20 May 2010) | 8 lines
  Turned out that if you used explicit relative import syntax
  (e.g. from .os import sep) and it failed, import would still try the implicit
  relative import semantics of an absolute import (from os import sep). That's
  not right, so when level is negative, only do explicit relative import
  semantics.
  Fixes issue #7902 . Thanks to Meador Inge for the patch.
........ 
							
						 
						
							2010-06-27 22:37:28 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Barry Warsaw 
								
							 
						 
						
							
							
							
							
								
							
							
								04b5684d00 
								
							 
						 
						
							
							
								
								Repair test failure.  Bug 8727.  
							
							
							
						 
						
							2010-05-18 14:15:20 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Brett Cannon 
								
							 
						 
						
							
							
							
							
								
							
							
								9fad92a622 
								
							 
						 
						
							
							
								
								Make test_module_with_large_stack as an expected failure because of a change in  
							
							... 
							
							
							
							importlib that is causing it to fail. Work to fix it is being tracked in issue
8727. 
							
						 
						
							2010-05-15 22:53:24 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Brett Cannon 
								
							 
						 
						
							
							
							
							
								
							
							
								e88e6ce8b7 
								
							 
						 
						
							
							
								
								Fix a comment to state the right thing.  
							
							
							
						 
						
							2010-05-15 22:51:45 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Brett Cannon 
								
							 
						 
						
							
							
							
							
								
							
							
								93220d0df1 
								
							 
						 
						
							
							
								
								A test was not guaranteeing cleanup in the face of an exception.  
							
							
							
						 
						
							2010-05-15 22:20:16 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Barry Warsaw 
								
							 
						 
						
							
							
							
							
								
							
							
								28a691b7fd 
								
							 
						 
						
							
							
								
								PEP 3147  
							
							
							
						 
						
							2010-04-17 00:19:56 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Florent Xicluna 
								
							 
						 
						
							
							
							
							
								
							
							
								8fbddf15ea 
								
							 
						 
						
							
							
								
								Merged revisions 79030-79032 via svnmerge from  
							
							... 
							
							
							
							svn+ssh://pythondev@svn.python.org/python/trunk
........
  r79030 | florent.xicluna | 2010-03-17 20:05:04 +0100 (mer, 17 mar 2010) | 2 lines
  Cleanup in test_import and test_coding.
........
  r79031 | florent.xicluna | 2010-03-17 20:15:56 +0100 (mer, 17 mar 2010) | 2 lines
  Cleanup some test cases using check_warnings and check_py3k_warnings.
........
  r79032 | florent.xicluna | 2010-03-17 21:05:11 +0100 (mer, 17 mar 2010) | 2 lines
  Fix and check cgi module deprecation warnings.  Revert an unwanted rename in test_import.
........ 
							
						 
						
							2010-03-17 20:29:51 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Collin Winter 
								
							 
						 
						
							
							
							
							
								
							
							
								6498cff19f 
								
							 
						 
						
							
							
								
								Add tests for overriding and shadowing __import__; these are a useful tripwire for an incoming JIT optimization.  
							
							
							
						 
						
							2010-03-17 03:14:31 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Collin Winter 
								
							 
						 
						
							
							
							
							
								
							
							
								88e333d141 
								
							 
						 
						
							
							
								
								Merged revisions 79016 via svnmerge from  
							
							... 
							
							
							
							svn+ssh://pythondev@svn.python.org/python/trunk
........
  r79016 | collin.winter | 2010-03-16 19:40:12 -0700 (Tue, 16 Mar 2010) | 1 line
  Style cleanup in test_import.
........ 
							
						 
						
							2010-03-17 03:09:21 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Benjamin Peterson 
								
							 
						 
						
							
							
							
							
								
							
							
								577473fe68 
								
							 
						 
						
							
							
								
								use assert[Not]In where appropriate  
							
							... 
							
							
							
							A patch from Dave Malcolm. 
							
						 
						
							2010-01-19 00:09:57 +00:00