Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
pybind11_abseil
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_abseil
Commits
03ee7687
Commit
03ee7687
authored
Sep 14, 2022
by
Xiaofei Wang
Committed by
Copybara-Service
Sep 14, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Internal change
PiperOrigin-RevId: 474334488
parent
2b69d826
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
pybind11_abseil/absl_casters.h
+1
-2
pybind11_abseil/tests/absl_test.py
+2
-2
No files found.
pybind11_abseil/absl_casters.h
View file @
03ee7687
...
...
@@ -445,8 +445,7 @@ struct type_caster<absl::Cord> {
// Conversion part 2 (C++ -> Python)
static
handle
cast
(
const
absl
::
Cord
&
src
,
return_value_policy
policy
,
handle
parent
)
{
return
StringViewCaster
::
cast
(
absl
::
string_view
(
std
::
string
(
src
)),
policy
,
parent
);
return
bytes
(
std
::
string
(
src
)).
release
();
}
};
...
...
pybind11_abseil/tests/absl_test.py
View file @
03ee7687
...
...
@@ -361,9 +361,9 @@ class AbslCordTest(absltest.TestCase):
def
test_return_absl_cord
(
self
):
self
.
assertSequenceEqual
(
absl_example
.
return_absl_cord
(
self
.
TEST_STRING
),
self
.
TEST_
STRING
)
absl_example
.
return_absl_cord
(
self
.
TEST_STRING
),
self
.
TEST_
BYTES
)
self
.
assertSequenceEqual
(
absl_example
.
return_absl_cord
(
self
.
TEST_BYTES
),
self
.
TEST_
STRING
)
absl_example
.
return_absl_cord
(
self
.
TEST_BYTES
),
self
.
TEST_
BYTES
)
def
test_pass_absl_cord
(
self
):
self
.
assertTrue
(
...
...
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