Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
pybind11
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
pybind11
Commits
ef057f12
Commit
ef057f12
authored
Jul 22, 2020
by
Henry Schreiner
Committed by
Henry Schreiner
Jul 23, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test: support pypy2 7.3
parent
134a2ec3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletions
+9
-1
tests/test_kwargs_and_defaults.py
+7
-0
tests/test_pytypes.py
+2
-1
No files found.
tests/test_kwargs_and_defaults.py
View file @
ef057f12
...
...
@@ -2,6 +2,11 @@
import
pytest
from
pybind11_tests
import
kwargs_and_defaults
as
m
import
platform
import
sys
pypy
=
platform
.
python_implementation
()
==
"PyPy"
def
test_function_signatures
(
doc
):
assert
doc
(
m
.
kw_func0
)
==
"kw_func0(arg0: int, arg1: int) -> str"
...
...
@@ -146,6 +151,8 @@ def test_keyword_only_args(msg):
"""
@pytest.mark.xfail
(
pypy
and
sys
.
version_info
<
(
3
,
0
),
reason
=
"PyPy2 doesn't seem to double count"
)
def
test_args_refcount
():
"""Issue/PR #1216 - py::args elements get double-inc_ref()ed when combined with regular
arguments"""
...
...
tests/test_pytypes.py
View file @
ef057f12
...
...
@@ -322,7 +322,8 @@ def test_memoryview_from_buffer_empty_shape():
assert
view
.
format
==
'B'
if
sys
.
version_info
.
major
<
3
:
# Python 2 behavior is weird, but Python 3 (the future) is fine.
assert
bytes
(
view
)
.
startswith
(
b
'<memory at '
)
# PyPy3 has <memoryview, while CPython 2 has <memory
assert
bytes
(
view
)
.
startswith
(
b
'<memory'
)
else
:
assert
bytes
(
view
)
==
b
''
...
...
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