mirror of
https://github.com/pybind/pybind11.git
synced 2026-03-14 20:27:47 +00:00
Add checks to maintain a consistent Python code style and prevent bugs (#515)
A flake8 configuration is included in setup.cfg and the checks are executed automatically on Travis: * Ensures a consistent PEP8 code style * Does basic linting to prevent possible bugs
This commit is contained in:
committed by
Wenzel Jakob
parent
df81546965
commit
bad1740213
@@ -69,6 +69,6 @@ def test_custom(msg):
|
||||
with pytest.raises(MyException5) as excinfo:
|
||||
try:
|
||||
throws5()
|
||||
except MyException5_1 as e:
|
||||
except MyException5_1:
|
||||
raise RuntimeError("Exception error: caught child from parent")
|
||||
assert msg(excinfo.value) == "this is a helper-defined translated exception"
|
||||
|
||||
Reference in New Issue
Block a user