simplify the expression which transfers mark names to keywords
This commit is contained in:
		
							parent
							
								
									e98627223f
								
							
						
					
					
						commit
						13d750db20
					
				|  | @ -1399,14 +1399,11 @@ class Function(FunctionMixin, nodes.Item, fixtures.FuncargnamesCompatAttr): | ||||||
|         # https://github.com/pytest-dev/pytest/issues/4569 |         # https://github.com/pytest-dev/pytest/issues/4569 | ||||||
| 
 | 
 | ||||||
|         self.keywords.update( |         self.keywords.update( | ||||||
|             dict.fromkeys( |             { | ||||||
|                 [ |                 mark.name: True | ||||||
|                     mark.name |                 for mark in self.iter_markers() | ||||||
|                     for mark in self.iter_markers() |                 if mark.name not in self.keywords | ||||||
|                     if mark.name not in self.keywords |             } | ||||||
|                 ], |  | ||||||
|                 True, |  | ||||||
|             ) |  | ||||||
|         ) |         ) | ||||||
| 
 | 
 | ||||||
|         if fixtureinfo is None: |         if fixtureinfo is None: | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue