-
Notifications
You must be signed in to change notification settings - Fork 248
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not fail on Python 3.12 when there are tests but all skipped.
This follows the same change in Python itself from python/cpython#113661. PiperOrigin-RevId: 597654135
- Loading branch information
1 parent
2af184b
commit 198f916
Showing
5 changed files
with
92 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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() |