mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	Update outstanding bugs test file.
This commit is contained in:
		
							parent
							
								
									c6fdec6d7e
								
							
						
					
					
						commit
						856b446793
					
				
					 1 changed files with 5 additions and 10 deletions
				
			
		|  | @ -9,19 +9,14 @@ | |||
| import unittest | ||||
| from test import test_support | ||||
| 
 | ||||
| class TestBug1385040(unittest.TestCase): | ||||
|     def testSyntaxError(self): | ||||
|         import compiler | ||||
| 
 | ||||
|         # The following snippet gives a SyntaxError in the interpreter | ||||
|         # | ||||
|         # If you compile and exec it, the call foo(7) returns (7, 1) | ||||
|         self.assertRaises(SyntaxError, compiler.compile, | ||||
|                           "def foo(a=1, b): return a, b\n\n", "<string>", "exec") | ||||
| # | ||||
| # No test cases for outstanding bugs at the moment. | ||||
| # | ||||
| 
 | ||||
| 
 | ||||
| def test_main(): | ||||
|     test_support.run_unittest(TestBug1385040) | ||||
|     #test_support.run_unittest() | ||||
|     pass | ||||
| 
 | ||||
| if __name__ == "__main__": | ||||
|     test_main() | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Georg Brandl
						Georg Brandl