1"""Test helper for ExitCodeTest in absltest_test.py.""" 2 3import os 4from absl.testing import absltest 5 6 7if os.environ.get("ABSLTEST_TEST_HELPER_DEFINE_CLASS") == "1": 8 9 class MyTest(absltest.TestCase): 10 11 @absltest.skip("Skipped for testing the exit code behavior") 12 def test_foo(self): 13 pass 14 15 16if __name__ == "__main__": 17 absltest.main() 18