-
Notifications
You must be signed in to change notification settings - Fork 48
CI: add integration tests with python 3.13 #336
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
b35f24c
aeb8fe6
4a15353
c15ba8e
9b4ef7f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -390,6 +390,17 @@ def _id_and_mark(f): | |
requires_custom_payload = pytest.mark.skipif(SCYLLA_VERSION is not None or PROTOCOL_VERSION < 4, | ||
reason='Scylla does not support custom payloads. Cassandra requires native protocol v4.0+') | ||
xfail_scylla = lambda reason, *args, **kwargs: pytest.mark.xfail(SCYLLA_VERSION is not None, reason=reason, *args, **kwargs) | ||
|
||
|
||
def xfail_scylla_version(reason, oss_scylla_version, ent_scylla_version, *args, **kwargs): | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah, I thought maybe to support both options somehow, but I didn't had time todo so. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think of putting the version into pytest_markeval_namespace so can use pytest.mark.xfail directly |
||
current_version = Version(get_scylla_version(SCYLLA_VERSION) if SCYLLA_VERSION is not None else '0.0.0') | ||
if current_version > Version("2018.1"): | ||
lt_scylla_version = Version(ent_scylla_version) | ||
else: | ||
lt_scylla_version = Version(oss_scylla_version) | ||
return pytest.mark.xfail(current_version < lt_scylla_version, | ||
reason=reason, *args, **kwargs) | ||
|
||
incorrect_test = lambda reason='This test seems to be incorrect and should be fixed', *args, **kwargs: pytest.mark.xfail(reason=reason, *args, **kwargs) | ||
|
||
pypy = unittest.skipUnless(platform.python_implementation() == "PyPy", "Test is skipped unless it's on PyPy") | ||
|
Uh oh!
There was an error while loading. Please reload this page.