Skip to content
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

test_telemetry fails for Python Version 3.11.0rc1 #2431

Merged
merged 2 commits into from
Jan 24, 2024
Merged
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
8 changes: 3 additions & 5 deletions tests/test_telemetry.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
from reflex.utils import telemetry

from packaging.version import parse as parse_python_version

def versiontuple(v):
return tuple(map(int, (v.split("."))))
from reflex.utils import telemetry


def test_telemetry():
Expand All @@ -24,7 +22,7 @@ def test_telemetry():
# Check that the Python version is greater than 3.7.
python_version = telemetry.get_python_version()
assert python_version is not None
assert versiontuple(python_version) >= versiontuple("3.7")
assert parse_python_version(python_version) >= parse_python_version("3.7")


def test_disable():
Expand Down
Loading