Skip to content

Commit

Permalink
Fix xfail definition
Browse files Browse the repository at this point in the history
  • Loading branch information
tkilias committed Feb 14, 2025
1 parent 80162bb commit e3a0f74
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions test/integration/sqlalchemy/test_suite.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,9 +245,9 @@ def test_long_convention_name(self, type_, connection):
assert len(actual_name) > 255

if reflected_name is not None:
overlap = actual_name[0 : len(reflected_name)]
overlap = actual_name[0: len(reflected_name)]
if len(overlap) < len(actual_name):
eq_(overlap[0:-5], reflected_name[0 : len(overlap) - 5])
eq_(overlap[0:-5], reflected_name[0: len(overlap) - 5])
else:
eq_(overlap, reflected_name)

Expand All @@ -265,7 +265,11 @@ def test_null_in_empty_set_is_false(self):


class ExceptionTest(_ExceptionTest):
@pytest.mark.xfail("This is likely a driver issue. We will investigate it in https://github.com/exasol/sqlalchemy-exasol/issues/539.")
RATIONALE = "This is likely a driver issue. We will investigate it in " \
"https://github.com/exasol/sqlalchemy-exasol/issues/539."

@pytest.mark.xfail("odbc" in testing.db.dialect.driver,
reason=RATIONALE)
@requirements.duplicate_key_raises_integrity_error
def test_integrity_error(self):
# Note: autocommit currently is needed to force error evaluation,
Expand Down

0 comments on commit e3a0f74

Please sign in to comment.