diff --git a/tests/test_client.py b/tests/test_client.py index 6d898a0..38424ac 100644 --- a/tests/test_client.py +++ b/tests/test_client.py @@ -134,8 +134,19 @@ class TestClient(object): # we create a table. limit = resource.getrlimit(resource.RLIMIT_FSIZE) resource.setrlimit(resource.RLIMIT_FSIZE, (1, limit[1])) + + # normal with assert_raises(ServerError) as e: client.stream_create("/newton/hello", "uint16_6") + + # same but with force_traceback == False, to improve coverage + global test_server + test_server.force_traceback = False + with assert_raises(ServerError) as e: + client.stream_create("/newton/world", "uint16_6") + test_server.force_traceback = True + + # Reset resource limit resource.setrlimit(resource.RLIMIT_FSIZE, limit) client.close()