mirror of
				https://github.com/django/django.git
				synced 2025-10-31 01:25:32 +00:00 
			
		
		
		
	[2.2.x] Fixed serializers test crash if PyYAML isn't installed.
Follow up toa57c783dd4. Backport of55490ac746from master
This commit is contained in:
		
				
					committed by
					
						 Mariusz Felisiak
						Mariusz Felisiak
					
				
			
			
				
	
			
			
			
						parent
						
							505785a71d
						
					
				
				
					commit
					abd6fb1656
				
			| @@ -116,7 +116,7 @@ class YamlSerializerTestCase(SerializersTestBase, TestCase): | ||||
|     headline: Poker has no place on ESPN | ||||
|     pub_date: 2006-06-16 11:00:00 | ||||
|     categories:""" + ( | ||||
|         ' [%(first_category_pk)s, %(second_category_pk)s]' if yaml.__version__ < '5.1' | ||||
|         ' [%(first_category_pk)s, %(second_category_pk)s]' if HAS_YAML and yaml.__version__ < '5.1' | ||||
|         else '\n    - %(first_category_pk)s\n    - %(second_category_pk)s') + """ | ||||
|     meta_data: [] | ||||
| """ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user