Skip to content
Snippets Groups Projects
Commit 0a1652ff authored by Joseph Weston's avatar Joseph Weston
Browse files

add clarifying comment to test for warnings

parent 3bfff8b6
No related branches found
No related tags found
No related merge requests found
...@@ -715,6 +715,7 @@ def test_fill(): ...@@ -715,6 +715,7 @@ def test_fill():
target = builder.Builder() target = builder.Builder()
added_sites = target.fill(template_1d, line_200, g(0, 0)) added_sites = target.fill(template_1d, line_200, g(0, 0))
assert len(added_sites) == 200 assert len(added_sites) == 200
# raise warning if target already contains all starting sites
with warns(RuntimeWarning): with warns(RuntimeWarning):
target.fill(template_1d, line_200, g(0, 0)) target.fill(template_1d, line_200, g(0, 0))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment