diff options
| author | Ulf Magnusson <ulfalizer@gmail.com> | 2018-01-17 14:08:17 +0100 |
|---|---|---|
| committer | Ulf Magnusson <ulfalizer@gmail.com> | 2018-01-17 14:10:02 +0100 |
| commit | 3c0e931b553d0c633e65a6dc36cf5aab0a544753 (patch) | |
| tree | ff4a707b13af065f736155aea8324166f4197ab7 /testsuite.py | |
| parent | 7dc5b74229e83876307082712162d48e3124e10b (diff) | |
Improve recursive 'source' test
Check for incorrect exceptions instead of propagating them, and get rid
of the flag.
Diffstat (limited to 'testsuite.py')
| -rw-r--r-- | testsuite.py | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/testsuite.py b/testsuite.py index a876f0e..dcc5607 100644 --- a/testsuite.py +++ b/testsuite.py @@ -781,15 +781,14 @@ g # Test recursive 'source' detection - got_syntax_exception = False try: Kconfig("Kconfiglib/tests/Krecursive1") except KconfigSyntaxError: - got_syntax_exception = True - - verify(got_syntax_exception, - "recursive 'source' did not raise KconfigSyntaxError") - + pass + except: + fail("recursive 'source' raised wrong exception") + else: + fail("recursive 'source' did not raise exception") print("Testing visibility") |
