From 533442e10e478d524bfbebf9b33f5d5ba00497b3 Mon Sep 17 00:00:00 2001 From: Joseph Weston <joseph.weston08@gmail.com> Date: Wed, 14 Jun 2017 14:00:42 +0200 Subject: [PATCH] add clarifying comment to test for warnings --- kwant/tests/test_builder.py | 1 + 1 file changed, 1 insertion(+) diff --git a/kwant/tests/test_builder.py b/kwant/tests/test_builder.py index 9bd369d6..9c83ac59 100644 --- a/kwant/tests/test_builder.py +++ b/kwant/tests/test_builder.py @@ -715,6 +715,7 @@ def test_fill(): target = builder.Builder() added_sites = target.fill(template_1d, line_200, g(0, 0)) assert len(added_sites) == 200 + # raise warning if target already contains all starting sites with warns(RuntimeWarning): target.fill(template_1d, line_200, g(0, 0)) -- GitLab