Skip to content

Commit

Permalink
Make comment validation conditional in test
Browse files Browse the repository at this point in the history
  • Loading branch information
gordthompson committed Sep 9, 2024
1 parent af5fa9f commit aff2a6c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions test/test_suite_sqlalchemy.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,9 +243,10 @@ def test_get_multi_columns(self):
len(actual[(None, "comment_test")]),
len(expected[(None, "comment_test")]),
)
act = [x for x in actual[(None, "comment_test")] if x["name"] == "data"][0]
exp = [x for x in expected[(None, "comment_test")] if x["name"] == "data"][0]
eq_(act["comment"], exp["comment"])
if config.db.dialect.supports_comments:
act = [x for x in actual[(None, "comment_test")] if x["name"] == "data"][0]
exp = [x for x in expected[(None, "comment_test")] if x["name"] == "data"][0]
eq_(act["comment"], exp["comment"])

@skip("cockroachdb")
def test_get_multi_indexes(self):
Expand Down

0 comments on commit aff2a6c

Please sign in to comment.