Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cython
Commits
1d37d3a7
Commit
1d37d3a7
authored
Apr 01, 2021
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix some doctest output that changed in Py3.10.
parent
3df198fc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
tests/run/posonly.py
tests/run/posonly.py
+6
-6
No files found.
tests/run/posonly.py
View file @
1d37d3a7
...
...
@@ -264,7 +264,7 @@ class TestPosonlyMethods(object):
Got type error
>>> TestPosonlyMethods().f(1, b=2) # doctest: +ELLIPSIS
Traceback (most recent call last):
TypeError: f() got ... keyword argument... 'b'
TypeError:
...
f() got ... keyword argument... 'b'
"""
def
f
(
self
,
a
,
b
,
/
):
return
a
,
b
...
...
@@ -316,10 +316,10 @@ def test_closures1(x,y):
10
>>> test_closures1(1,2)(3) # doctest: +ELLIPSIS
Traceback (most recent call last):
TypeError: g() ... positional argument...
TypeError:
...
g() ... positional argument...
>>> test_closures1(1,2)(3,4,5) # doctest: +ELLIPSIS
Traceback (most recent call last):
TypeError: g() ... positional argument...
TypeError:
...
g() ... positional argument...
"""
def
g
(
x2
,
/
,
y2
):
return
x
+
y
+
x2
+
y2
...
...
@@ -341,10 +341,10 @@ def test_closures3(x,/,y):
10
>>> test_closures3(1,2)(3) # doctest: +ELLIPSIS
Traceback (most recent call last):
TypeError: g() ... positional argument...
TypeError:
...
g() ... positional argument...
>>> test_closures3(1,2)(3,4,5) # doctest: +ELLIPSIS
Traceback (most recent call last):
TypeError: g() ... positional argument...
TypeError:
...
g() ... positional argument...
"""
def
g
(
x2
,
/
,
y2
):
return
x
+
y
+
x2
+
y2
...
...
@@ -562,7 +562,7 @@ class TestExtensionClass:
(1, 2, 4)
>>> t.f(1, 2, 5, c=6) # doctest: +ELLIPSIS
Traceback (most recent call last):
TypeError: f() got multiple values for ...argument 'c'
TypeError:
...
f() got multiple values for ...argument 'c'
"""
def
f
(
self
,
a
,
b
,
/
,
c
=
3
):
return
(
a
,
b
,
c
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment