summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichele Simionato <michele.simionato@gmail.com>2021-04-11 07:53:10 +0200
committerMichele Simionato <michele.simionato@gmail.com>2021-04-11 07:53:10 +0200
commitc8fed191b3133bdb3021c531e5cc9dada1953a7d (patch)
treee5fa9a72243e332ea2aa6bf344260c5ee36320b3
parent8b264300d6c560c6f608b645f63de6865776371b (diff)
downloadpython-decorator-git-c8fed191b3133bdb3021c531e5cc9dada1953a7d.tar.gz
Fixed doctest breaking in Python 3.55.0.7
-rw-r--r--src/tests/documentation.py8
1 files 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)