Skip to content

Conversation

@bhrutledge
Copy link
Owner

@bhrutledge bhrutledge commented Jan 2, 2025

Opening this against my fork because wingify#7 requires approval.

@bhrutledge bhrutledge changed the title Test Python 3.10 Test Python 3.10 and jsonschema 4.x Jan 3, 2025
python-version:
- "3.8"
- "3.9"
- "3.10"
Copy link
Owner Author

@bhrutledge bhrutledge Jan 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Scanning through the log output, it looks like all version log errors during the test runs (i.e. it's expected behavior). However, the log output format is different between Python 3.8 and Python 3.10:

< test_connection_post_with_exception (tests.http.test_connection.ConnectionTest) ... VWO-SDK - [ERROR]: vwo/http/connection): HTTP Connection - Exception. Error - REQUEST FAILED
---
> test_connection_post_with_exception (tests.http.test_connection.ConnectionTest) ... VWO-SDK - [ERROR]: 805 (vwo/http/connection): HTTP Connection - Exception. Error - REQUEST FAILED
> (vwo/http/connection): HTTP Connection - Exception. Error - REQUEST FAILED

In Python 3.10, there's an extra number after the log level, and the message is printed twice.

Don't know if this would impact us.

Raw logs:

Comment on lines +118 to +121
if sys.version_info >= (3, 10):
self.assertIs(logger.logger.level, 20) # In Python >=3.10, the default log level is 20 (INFO)
else:
self.assertIs(logger.logger.level, 30) # In Python <3.10, the default log level is 30 (WARNING)
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CoPilot said the default changed in Python 3.10, but I don't see that referenced in the changelog, and the 3.10 docs say the default is still WARNING. 😕

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants