-
Notifications
You must be signed in to change notification settings - Fork 0
Test Python 3.10 and jsonschema 4.x #1
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
base: master
Are you sure you want to change the base?
Conversation
| python-version: | ||
| - "3.8" | ||
| - "3.9" | ||
| - "3.10" |
There was a problem hiding this comment.
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 FAILEDIn 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:
| 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) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Opening this against my fork because wingify#7 requires approval.