Skip to content

Commit

Permalink
Fixed linting issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
LarsAsplund committed Feb 3, 2017
1 parent 0ddb408 commit 9e62f93
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
5 changes: 0 additions & 5 deletions .travis.yml
Expand Up @@ -20,11 +20,6 @@ matrix:
- env: BUILD_NAME=py35-docs
python: '3.5'

- env: BUILD_NAME=py27-license
python: '2.7'
- env: BUILD_NAME=py35-license
python: '3.5'

# Python 2.7 with ghdl mcode
- env: BUILD_NAME=py27-acceptance-ghdl
python: '2.7'
Expand Down
6 changes: 5 additions & 1 deletion vunit/simulator_interface.py
Expand Up @@ -64,7 +64,11 @@ def find_executable(executable):
return result

@staticmethod
def _get_local_vhdl_assert_stop_level(config, mapping=dict(warning="warning", error="error", failure="failure")):
def _get_local_vhdl_assert_stop_level(config, mapping=None):
"""
Return the VHDL assert stop level to use with the simulator
"""
mapping = mapping if mapping is not None else dict(warning="warning", error="error", failure="failure")
if "vhdl_assert_stop_level" in config.options:
if config.options.get("vhdl_assert_stop_level") not in mapping:
raise RuntimeError("Unknown vhdl_assert_stop_level: %s" % config.options.get("vhdl_assert_stop_level"))
Expand Down
1 change: 1 addition & 0 deletions vunit/test/acceptance/artificial/vhdl/run.py
Expand Up @@ -64,6 +64,7 @@ def configure_tb_set_generic(ui):
tb.set_generic("str_space_val", "1 2 3")
tb.set_generic("str_quote_val", 'a"b')


def configure_tb_assert_stop_level(ui):
tb = ui.library("lib").entity("tb_assert_stop_level")

Expand Down

0 comments on commit 9e62f93

Please sign in to comment.