diff options
Diffstat (limited to 'tests/postgres_tests/test_array.py')
| -rw-r--r-- | tests/postgres_tests/test_array.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/postgres_tests/test_array.py b/tests/postgres_tests/test_array.py index 77ac049ce4..e2ad3e8dcc 100644 --- a/tests/postgres_tests/test_array.py +++ b/tests/postgres_tests/test_array.py @@ -176,6 +176,15 @@ class TestQuerying(PostgreSQLTestCase): self.objs[:2] ) + def test_in_subquery(self): + IntegerArrayModel.objects.create(field=[2, 3]) + self.assertSequenceEqual( + NullableIntegerArrayModel.objects.filter( + field__in=IntegerArrayModel.objects.all().values_list('field', flat=True) + ), + self.objs[2:3] + ) + @unittest.expectedFailure def test_in_including_F_object(self): # This test asserts that Array objects passed to filters can be |
