From c8fed191b3133bdb3021c531e5cc9dada1953a7d Mon Sep 17 00:00:00 2001 From: Michele Simionato Date: Sun, 11 Apr 2021 07:53:10 +0200 Subject: Fixed doctest breaking in Python 3.5 --- src/tests/documentation.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/tests/documentation.py b/src/tests/documentation.py index e2cf247..4fa5c9d 100644 --- a/src/tests/documentation.py +++ b/src/tests/documentation.py @@ -395,7 +395,7 @@ tuple and not inside the ``kwargs`` dictionary: ```python >>> printsum(y=2, x=1) -(1, 2) {} +(1, 2) [] 3 ``` @@ -416,7 +416,7 @@ Here is how it works: ```python >>> printsum2(y=2, x=1) -() {'y': 2, 'x': 1} +() [('x', 1), ('y', 2)] 3 ``` @@ -428,7 +428,7 @@ positional, i.e. they belongs to the ``args`` tuple and not to ``kwargs``: ```python >>> printsum2(1, 2) -(1, 2) {} +(1, 2) [] 3 ``` @@ -1815,7 +1815,7 @@ def operation2(): def chatty(func, *args, **kwargs): - print(args, kwargs) + print(args, sorted(kwargs.items())) return func(*args, **kwargs) -- cgit v1.2.1