mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 21:51:50 +00:00 
			
		
		
		
	Fix compiler test when run with -u (long mode)
This commit is contained in:
		
							parent
							
								
									f1d50684c6
								
							
						
					
					
						commit
						f8950654e3
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -28,7 +28,7 @@ def testCompileLibrary(self): | ||||||
|                 f = open(path, "U") |                 f = open(path, "U") | ||||||
|                 buf = f.read() |                 buf = f.read() | ||||||
|                 f.close() |                 f.close() | ||||||
|                 if "badsyntax" in basename: |                 if "badsyntax" in basename or "bad_coding" in basename: | ||||||
|                     self.assertRaises(SyntaxError, compiler.compile, |                     self.assertRaises(SyntaxError, compiler.compile, | ||||||
|                                       buf, basename, "exec") |                                       buf, basename, "exec") | ||||||
|                 else: |                 else: | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Neal Norwitz
						Neal Norwitz