8000 Restore _warn_about_deprecation in test_support. · python/cpython@c20faba · GitHub
[go: up one dir, main page]

Skip to content

Commit c20faba

Browse files
Restore _warn_about_deprecation in test_support.
1 parent cf122fd commit c20faba

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Lib/test/test_support.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -705,5 +705,16 @@ def test_print_warning(self):
705705
# SuppressCrashReport
706706

707707

708+
def _warn_about_deprecation():
709+
# In 3.10+ this lives in test.support.warnings_helper
710+
warnings.warn(
711+
"This is used in test_support test to ensure"
712+
" support.ignore_deprecations_from() works as expected."
713+
" You should not be seeing this.",
714+
DeprecationWarning,
715+
stacklevel=0,
716+
)
717+
718+
708719
if __name__ == '__main__':
709720
unittest.main()

0 commit comments

Comments
 (0)
0