Skip to content

Commit

Permalink
Resolve pytest-asyncio deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
rmartin16 committed Aug 30, 2024
1 parent 22d5c1c commit b25e34c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions changes/2799.misc.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
A deprecation warning from pytest-asyncio was resolved.
4 changes: 3 additions & 1 deletion testbed/tests/testbed.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,10 @@ def run_tests(app, cov, args, report_coverage, run_slow, running_in_ci):
"-Wignore::toga.NotImplementedWarning",
# Run all async tests and fixtures using pytest-asyncio.
"--asyncio-mode=auto",
"--override-ini",
"asyncio_default_fixture_loop_scope=function",
# Override the cache directory to be somewhere known writable
"-o",
"--override-ini",
f"cache_dir={tempfile.gettempdir()}/.pytest_cache",
]
+ args
Expand Down

0 comments on commit b25e34c

Please sign in to comment.