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
f37d4455
Commit
f37d4455
authored
Nov 06, 2023
by
Matt McDonald
Committed by
Copybara-Service
Nov 06, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Internal change.
PiperOrigin-RevId: 579841851
parent
2ed475dc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
pybind11_abseil/tests/status_test.py
+2
-2
No files found.
pybind11_abseil/tests/status_test.py
View file @
f37d4455
...
...
@@ -42,12 +42,12 @@ class StatusTest(parameterized.TestCase):
def
test_status_nok_ok_str
(
self
):
with
self
.
assertRaises
(
AttributeError
)
as
cm
:
status
.
StatusNotOk
(
''
)
status
.
StatusNotOk
(
''
)
# pytype: disable=wrong-arg-types
self
.
assertEqual
(
str
(
cm
.
exception
),
"'str' object has no attribute 'ok'"
)
def
test_status_nok_ok_none
(
self
):
with
self
.
assertRaises
(
AssertionError
)
as
cm
:
status
.
StatusNotOk
(
None
)
status
.
StatusNotOk
(
None
)
# pytype: disable=wrong-arg-types
self
.
assertEqual
(
str
(
cm
.
exception
),
''
)
def
test_canonical_error
(
self
):
...
...
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