From 831575c13b1d9196a9b18bc7e074223d9e971b63 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Fri, 29 Mar 2013 18:52:49 +0100 Subject: [PATCH] fix doctest --- tests/run/cyfunction_defaults.pyx | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/tests/run/cyfunction_defaults.pyx b/tests/run/cyfunction_defaults.pyx index f032e1e..42209a6 100644 --- a/tests/run/cyfunction_defaults.pyx +++ b/tests/run/cyfunction_defaults.pyx @@ -102,12 +102,8 @@ def test_kwdefaults(value): >>> cy_kwonly_default_args.__kwdefaults__ {'b': 2} - >>> if IS_PY3: test_kwdefaults.__defaults__ is None - ... else: print(True) - True - >>> test_kwdefaults.__kwdefaults__ is None - ... else: print(True) - True + >>> test_kwdefaults.__defaults__ + >>> test_kwdefaults.__kwdefaults__ >>> f = test_kwdefaults(5) >>> f.__defaults__ -- 2.7.4