Commit 3922b386 by Ralf W. Grosse-Kunstleve Committed by Copybara-Service

Replace `absl.testing.absltest` with `unittest` in missing_import_test.py

PiperOrigin-RevId: 489996384
parent 6776a520
"""Tests that the casters raise a TypeError if the status module is missing.""" """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 from pybind11_abseil.tests import missing_import
class MissingStatusImportTest(absltest.TestCase): class MissingStatusImportTest(unittest.TestCase):
message_regex = 'Status module has not been imported.*' message_regex = 'Status module has not been imported.*'
...@@ -18,4 +21,4 @@ class MissingStatusImportTest(absltest.TestCase): ...@@ -18,4 +21,4 @@ class MissingStatusImportTest(absltest.TestCase):
if __name__ == '__main__': if __name__ == '__main__':
absltest.main() unittest.main()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment