Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Dec 2, 2021. It is now read-only.

Tests should use a separate shelve test database#14

Conversation

erika-dike
Copy link

While trying to run the tests locally, I ran into errors when pickle tried to load the already existing database. I think it would be nice if readers do not have to waste any time with this error.

This PR fixes that by creating a temporary database before any tests in the module run and deleting it afterwards. I also took the liberty of switching from the deprecated@pytest.yield_fixture to@pytest.fixture.

Thanks for a wonderful book 😃.

- Switch from depreccated yield_fixture to fixture decorator
@ramalhoramalho merged commitf31f0cb intofluentpython:masterJun 19, 2021
@ramalho
Copy link
Member

Thank you for this contribution@erika-dike!

Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@erika-dike@ramalho

[8]ページ先頭

©2009-2025 Movatter.jp