From 4e2a89c41b0bb423891767d10bdc3cb1b75eaa5e Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Mon, 20 Jun 2022 11:06:34 -0400 Subject: remove warnings for index/unique skipped due to exclude_cols The warnings that are emitted regarding reflection of indexes or unique constraints, when the :paramref:`.Table.include_columns` parameter is used to exclude columns that are then found to be part of those constraints, have been removed. When the :paramref:`.Table.include_columns` parameter is used it should be expected that the resulting :class:`.Table` construct will not include constraints that rely upon omitted columns. This change was made in response to :ticket:`8100` which repaired :paramref:`.Table.include_columns` in conjunction with foreign key constraints that rely upon omitted columns, where the use case became clear that omitting such constraints should be expected. Fixes: #8102 Change-Id: Id32f628def2d12499cd49d0b436ed345fe49dc6b --- test/engine/test_reflection.py | 2 -- 1 file changed, 2 deletions(-) (limited to 'test/engine') diff --git a/test/engine/test_reflection.py b/test/engine/test_reflection.py index 2f6c06ace..cf8f754f5 100644 --- a/test/engine/test_reflection.py +++ b/test/engine/test_reflection.py @@ -375,7 +375,6 @@ class ReflectionTest(fixtures.TestBase, ComparesTables): 1, ) - @testing.emits_warning(r".*omitted columns") def test_include_columns_indexes(self, connection, metadata): m = metadata @@ -2302,7 +2301,6 @@ class IncludeColsFksTest(AssertsCompiledSQL, fixtures.TestBase): for c in ("a", "c", "d"): assert c not in foo.c - @testing.emits_warning @testing.combinations(True, False, argnames="resolve_fks") def test_include_cols_skip_fk_col( self, connection, tab_w_fks, resolve_fks -- cgit v1.2.1