mirror of
				https://github.com/django/django.git
				synced 2025-10-26 07:06:08 +00:00 
			
		
		
		
	Corrected test case in ExclusionConstraintTests.test_invalid_expressions().
This commit is contained in:
		| @@ -309,7 +309,7 @@ class ExclusionConstraintTests(PostgreSQLTestCase): | |||||||
|  |  | ||||||
|     def test_invalid_expressions(self): |     def test_invalid_expressions(self): | ||||||
|         msg = "The expressions must be a list of 2-tuples." |         msg = "The expressions must be a list of 2-tuples." | ||||||
|         for expressions in (["foo"], ["foo"], [("foo_1", "foo_2", "foo_3")]): |         for expressions in (["foo"], [("foo",)], [("foo_1", "foo_2", "foo_3")]): | ||||||
|             with self.subTest(expressions), self.assertRaisesMessage(ValueError, msg): |             with self.subTest(expressions), self.assertRaisesMessage(ValueError, msg): | ||||||
|                 ExclusionConstraint( |                 ExclusionConstraint( | ||||||
|                     index_type="GIST", |                     index_type="GIST", | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user