Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions test/integration/test_session.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,9 @@ def test_broken_transaction_should_not_break_session(self):
tx.run("RETURN 1")

def test_last_run_statement_should_be_cleared_on_failure(self):
if not self.at_least_version(3, 2):
raise SkipTest("Statement reuse is not supported before server 3.2")

with self.driver.session() as session:
tx = session.begin_transaction()
tx.run("RETURN 1").consume()
Expand Down
2 changes: 1 addition & 1 deletion test/integration/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def server_version_info(cls):

@classmethod
def at_least_version(cls, major, minor):
return cls.server_version_info().at_least_version(major, minor);
return cls.server_version_info().at_least_version(major, minor)

@classmethod
def delete_known_hosts_file(cls):
Expand Down