Skip to content

Commit

Permalink
Merge pull request #2799 from rmartin16/pytest-asyncio-deprecation
Browse files Browse the repository at this point in the history
Resolve pytest-asyncio deprecation warning
  • Loading branch information
freakboy3742 authored Aug 31, 2024
2 parents 22d5c1c + 67ffc1c commit 04db313
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=session",
# 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 04db313

Please sign in to comment.