diff options
Diffstat (limited to 'plugins')
| -rw-r--r-- | plugins/security-guidance/tests/test_stop_scope_metrics.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/plugins/security-guidance/tests/test_stop_scope_metrics.py b/plugins/security-guidance/tests/test_stop_scope_metrics.py index 5d364ef0..c65103b6 100644 --- a/plugins/security-guidance/tests/test_stop_scope_metrics.py +++ b/plugins/security-guidance/tests/test_stop_scope_metrics.py @@ -106,7 +106,13 @@ class TestScope: _, repo = workspace m = _turn(repo, hook_env, edits=[str(repo / "a\ud800b.py"), repo / "app.py"], during=lambda: (repo / "app.py").write_text(VULN_PY)) - assert m["files_reviewed"] == 1 and "review_scope" not in m + assert m["files_reviewed"] == 1 + if os.name == "nt": + # Windows paths can hold a lone surrogate: it is one more file + # in the repo. + assert m["review_scope"] == 10000 + else: + assert "review_scope" not in m class TestSnapshot: |
