Skip to content

Commit

Permalink
test: Close SQLite connections before cleanup on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed Jul 20, 2024
1 parent aaa02e1 commit f7bdca8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

from scrapyd import Config
from scrapyd.app import application
from scrapyd.utils import get_spider_queues
from scrapyd.website import Root
from tests import clean, root_add_version

Expand All @@ -26,6 +27,9 @@ def root(request):

yield Root(config, app)

for spiderqueue in get_spider_queues(config).values():
spiderqueue.q.conn.close()

for setting in ("dbs_dir", "eggs_dir"):
clean(config, setting)

Expand Down

0 comments on commit f7bdca8

Please sign in to comment.