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
3922b386
Commit
3922b386
authored
Nov 21, 2022
by
Ralf W. Grosse-Kunstleve
Committed by
Copybara-Service
Nov 21, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace `absl.testing.absltest` with `unittest` in missing_import_test.py
PiperOrigin-RevId: 489996384
parent
6776a520
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
pybind11_abseil/tests/missing_import_test.py
+6
-3
No files found.
pybind11_abseil/tests/missing_import_test.py
View file @
3922b386
"""Tests that the casters raise a TypeError if the status module is missing."""
from
absl.testing
import
absltest
# In google3, `from absl.testing import absltest` imports the status module,
# which breaks the requirement for this test that the status module is missing.
import
unittest
from
pybind11_abseil.tests
import
missing_import
class
MissingStatusImportTest
(
absl
test
.
TestCase
):
class
MissingStatusImportTest
(
unit
test
.
TestCase
):
message_regex
=
'Status module has not been imported.*'
...
...
@@ -18,4 +21,4 @@ class MissingStatusImportTest(absltest.TestCase):
if
__name__
==
'__main__'
:
absl
test
.
main
()
unit
test
.
main
()
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