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
a07bf976
Commit
a07bf976
authored
Feb 09, 2021
by
Ralf W. Grosse-Kunstleve
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Overlooked flake8 fixes.
parent
7f176cba
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
tests/test_class_sh_basic.py
+1
-2
tests/test_smart_ptr.py
+2
-1
No files found.
tests/test_class_sh_basic.py
View file @
a07bf976
...
@@ -76,8 +76,7 @@ def test_pass_unique_ptr_disowns(rtrn_atyp, pass_atyp, rtrn):
...
@@ -76,8 +76,7 @@ def test_pass_unique_ptr_disowns(rtrn_atyp, pass_atyp, rtrn):
with
pytest
.
raises
(
RuntimeError
)
as
exc_info
:
with
pytest
.
raises
(
RuntimeError
)
as
exc_info
:
m
.
pass_uqmp_atyp
(
obj
)
m
.
pass_uqmp_atyp
(
obj
)
assert
str
(
exc_info
.
value
)
==
(
assert
str
(
exc_info
.
value
)
==
(
"Missing value for wrapped C++ type:"
"Missing value for wrapped C++ type: Python instance was disowned."
" Python instance was disowned."
)
)
...
...
tests/test_smart_ptr.py
View file @
a07bf976
...
@@ -304,7 +304,8 @@ def test_smart_ptr_from_default():
...
@@ -304,7 +304,8 @@ def test_smart_ptr_from_default():
m
.
HeldByDefaultHolder
.
load_shared_ptr
(
instance
)
m
.
HeldByDefaultHolder
.
load_shared_ptr
(
instance
)
assert
str
(
excinfo
.
value
)
in
(
assert
str
(
excinfo
.
value
)
in
(
"Unable to load a smart-pointer type from a non-smart_holder instance."
,
"Unable to load a smart-pointer type from a non-smart_holder instance."
,
"Unable to load a custom holder type from a default-holder instance"
)
"Unable to load a custom holder type from a default-holder instance"
,
)
def
test_shared_ptr_gc
():
def
test_shared_ptr_gc
():
...
...
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