From 88ce9e7be839766f0737022e0cb6589ac7303596 Mon Sep 17 00:00:00 2001 From: krakozaure <> Date: Sun, 26 Aug 2018 21:02:15 +0200 Subject: [PATCH] Add minor changes --- pyzzy/__init__.py | 1 - tests/test_logs.py | 2 +- tests/test_nested.py | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/pyzzy/__init__.py b/pyzzy/__init__.py index ca92b28..ae8bd87 100644 --- a/pyzzy/__init__.py +++ b/pyzzy/__init__.py @@ -21,7 +21,6 @@ __author__ = "krakozaure" __license__ = "MIT" -__name__ = "pyzzy" __version__ = "0.0.6" __all__ = [ diff --git a/tests/test_logs.py b/tests/test_logs.py index 4b6aec2..016da95 100644 --- a/tests/test_logs.py +++ b/tests/test_logs.py @@ -83,7 +83,7 @@ def test_root_console_handler_output_without_traceback(): with capture_handler_stream(logger, "console_production") as stream: try: print("1 / 0 =", 1 / 0) - except ZeroDivisionError as exc: + except ZeroDivisionError: logger.exception(message) captured_output = stream.getvalue() diff --git a/tests/test_nested.py b/tests/test_nested.py index 176b455..8919632 100644 --- a/tests/test_nested.py +++ b/tests/test_nested.py @@ -68,7 +68,7 @@ def test_nproxy_getitem(DATA_SOURCE): def test_nproxy_getitem_raises(): with pytest.raises(nested.NestedOperationError): - nested.NProxy()["key1[0].key2[-1].key3"] + print(nested.NProxy()["key1[0].key2[-1].key3"]) def test_nproxy_nset(DATA_SOURCE):