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

python 3.10 support #4866

Merged
merged 4 commits into from Mar 16, 2022
Merged

python 3.10 support #4866

merged 4 commits into from Mar 16, 2022

Conversation

iknox-fa
Copy link
Contributor

@iknox-fa iknox-fa commented Mar 15, 2022

resolves #4562 / CT-30

Description

Fixes known 3.10 bugs and logbook deprecations triggered by using 3.10

Checklist

  • I have signed the CLA
  • I have run this code in development and it appears to resolve the stated issue
  • This PR includes tests, or tests are not required/relevant for this PR
  • I have added information about my change to be included in the CHANGELOG.

@iknox-fa iknox-fa requested a review from a team March 15, 2022 17:33
@iknox-fa iknox-fa requested review from a team as code owners March 15, 2022 17:33
@cla-bot cla-bot bot added the cla:yes label Mar 15, 2022
@github-actions
Copy link
Contributor

Thank you for your pull request! We could not find a changelog entry for this change. For details on how to document a change, see the contributing guide.

@@ -14,6 +15,13 @@

# These are the fixtures that are used in dbt core functional tests

# Logbook warnings are ignored so we don't have to fork logbook to support python 3.10.
# This _only_ works for tests in `tests/` that use the project fixture.
@pytest.fixture(scope="class")
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think this needs to be a fixture because I can't conceive of a situation in which a test would want to turn the warning back on. So I think it would be better to just put it in the code, maybe right above setup_event_handler in the project fixture?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fair enough. Updated!

@iknox-fa iknox-fa requested a review from gshank March 15, 2022 20:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[CT-30] Add Support for Python 3.10
2 participants