Fixed passing invalid argument to pytest.raises

This commit is contained in:
Michael Lazar
2018-05-23 12:22:50 -04:00
committed by GitHub
parent 4ccb420d60
commit 26bfeb8802

View File

@@ -194,8 +194,8 @@ def test_theme_from_name():
assert theme.elements['Upvote'] == (-1, -1, curses.A_NORMAL) assert theme.elements['Upvote'] == (-1, -1, curses.A_NORMAL)
# Invalid theme name # Invalid theme name
with pytest.raises(ConfigError, path=path): with pytest.raises(ConfigError):
theme.from_name('invalid_theme_name') theme.from_name('invalid_theme_name', path=path)
def test_theme_initialize_attributes(stdscr): def test_theme_initialize_attributes(stdscr):