mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	[3.9] bpo-41659: Disallow curly brace directly after primary (GH-22996) (#23006)
(cherry picked from commit 15acc4eaba)
			
			
This commit is contained in:
		
							parent
							
								
									8aee019d71
								
							
						
					
					
						commit
						c4b58cea47
					
				
					 5 changed files with 244 additions and 167 deletions
				
			
		|  | @ -802,6 +802,9 @@ def _check_error(self, code, errtext, | |||
|         else: | ||||
|             self.fail("compile() did not raise SyntaxError") | ||||
| 
 | ||||
|     def test_curly_brace_after_primary_raises_immediately(self): | ||||
|         self._check_error("f{", "invalid syntax", mode="single") | ||||
| 
 | ||||
|     def test_assign_call(self): | ||||
|         self._check_error("f() = 1", "assign") | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Lysandros Nikolaou
						Lysandros Nikolaou