Skip to content

Commit

Permalink
Fix assertion rewriting on Android (closes #1961)
Browse files Browse the repository at this point in the history
  • Loading branch information
mhsmith committed Aug 14, 2023
1 parent 2eea854 commit b94efa0
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions testbed/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,15 @@ test_sources = [
requires = [
"../android",
]
# Coverage requires access to individual .py files.
build_gradle_extra_content = "android.defaultConfig.python.extractPackages 'toga_android'"
build_gradle_extra_content = """\
android.defaultConfig.python {
// Coverage requires access to individual .py files.
extractPackages("toga_android")
// Pytest's assertion rewriting produces its own .pyc files.
pyc.src = false
}
"""

[tool.briefcase.app.testbed.web]
requires = [
Expand Down

0 comments on commit b94efa0

Please sign in to comment.