mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +00:00 
			
		
		
		
	Fixed broken test from da160d440f; refs #23418.
This commit is contained in:
		
				
					committed by
					
						 Tim Graham
						Tim Graham
					
				
			
			
				
	
			
			
			
						parent
						
							aa399f6b8b
						
					
				
				
					commit
					16548cfc7c
				
			| @@ -172,7 +172,7 @@ class WriterTests(TestCase): | |||||||
|         self.assertEqual(string, "migrations.test_writer.EmailValidator(message='hello')") |         self.assertEqual(string, "migrations.test_writer.EmailValidator(message='hello')") | ||||||
|  |  | ||||||
|         validator = deconstructible(path="custom.EmailValidator")(EmailValidator)(message="hello") |         validator = deconstructible(path="custom.EmailValidator")(EmailValidator)(message="hello") | ||||||
|         with self.assertRaisesMessage(ImportError, "No module named 'custom'"): |         with six.assertRaisesRegex(self, ImportError, "No module named '?custom'?"): | ||||||
|             MigrationWriter.serialize(validator) |             MigrationWriter.serialize(validator) | ||||||
|  |  | ||||||
|         validator = deconstructible(path="django.core.validators.EmailValidator2")(EmailValidator)(message="hello") |         validator = deconstructible(path="django.core.validators.EmailValidator2")(EmailValidator)(message="hello") | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user