File: absltest_test_helper_skipped.py

package info (click to toggle)
python-absl 2.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,416 kB
  • sloc: python: 18,900; sh: 60; makefile: 13
file content (17 lines) | stat: -rw-r--r-- 350 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
"""Test helper for ExitCodeTest in absltest_test.py."""

import os
from absl.testing import absltest


if os.environ.get("ABSLTEST_TEST_HELPER_DEFINE_CLASS") == "1":

  class MyTest(absltest.TestCase):

    @absltest.skip("Skipped for testing the exit code behavior")
    def test_foo(self):
      pass


if __name__ == "__main__":
  absltest.main()