mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	warn about parameter tuple unpacking
This commit is contained in:
		
							parent
							
								
									d5efd20406
								
							
						
					
					
						commit
						f4fcdb6b8c
					
				
					 2 changed files with 9 additions and 0 deletions
				
			
		|  | @ -173,6 +173,12 @@ def set(): | |||
|             with catch_warning() as w: | ||||
|                 self.assertWarning(set(), w, expected) | ||||
| 
 | ||||
|     def test_tuple_parameter_unpacking(self): | ||||
|         expected = "tuple parameter unpacking has been removed in 3.x" | ||||
|         with catch_warning() as w: | ||||
|             exec "def f((a, b)): pass" | ||||
|             self.assertWarning(None, w, expected) | ||||
| 
 | ||||
|     def test_buffer(self): | ||||
|         expected = 'buffer() not supported in 3.x; use memoryview()' | ||||
|         with catch_warning() as w: | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Benjamin Peterson
						Benjamin Peterson