From 066b8b7165ce2f9cb836cf8d094d7a937289dc13 Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Fri, 24 Jan 2020 22:11:48 +0100 Subject: [PATCH] Avoid a print in tests --- test/test_inference/test_mixed.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test_inference/test_mixed.py b/test/test_inference/test_mixed.py index cf223899..9460f9ae 100644 --- a/test/test_inference/test_mixed.py +++ b/test/test_inference/test_mixed.py @@ -19,7 +19,7 @@ def test_on_code(): @pytest.mark.skipif('sys.version_info < (3,5)') -def test_generics(): +def test_generics_without_definition(): # Used to raise a recursion error T = TypeVar('T') @@ -40,7 +40,7 @@ def test_generics(): self.stack.push(1) s = StackWrapper() - print(interpreter('s.stack.pop().', locals()).complete()) + assert not interpreter('s.stack.pop().', locals()).complete() def test_mixed_module_cache():