summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorBrett Cannon <brett@python.org>2022-04-14 19:50:11 (GMT)
committerGitHub <noreply@github.com>2022-04-14 19:50:11 (GMT)
commit1b6cd872f440ee99989debc1bdecd8bea5a368bf (patch)
tree332eb451152af540a90d96b4b7d13482e780f061 /Lib
parent861974b514bc15ca1a3021f32a2d381c22f1a971 (diff)
downloadcpython-1b6cd872f440ee99989debc1bdecd8bea5a368bf.zip
cpython-1b6cd872f440ee99989debc1bdecd8bea5a368bf.tar.gz
cpython-1b6cd872f440ee99989debc1bdecd8bea5a368bf.tar.bz2
gh-91217: deprecate msilib (GH-91515)
Diffstat (limited to 'Lib')
-rw-r--r--Lib/msilib/__init__.py3
-rw-r--r--Lib/test/test_msilib.py5
2 files changed, 7 insertions, 1 deletions
diff --git a/Lib/msilib/__init__.py b/Lib/msilib/__init__.py
index 0e85aa2..565bf63 100644
--- a/Lib/msilib/__init__.py
+++ b/Lib/msilib/__init__.py
@@ -6,6 +6,9 @@ import os
import re
import string
import sys
+import warnings
+
+warnings._deprecated(__name__, remove=(3, 13))
AMD64 = "AMD64" in sys.version
# Keep msilib.Win64 around to preserve backwards compatibility.
diff --git a/Lib/test/test_msilib.py b/Lib/test/test_msilib.py
index e29cd4a..db16f62 100644
--- a/Lib/test/test_msilib.py
+++ b/Lib/test/test_msilib.py
@@ -3,7 +3,10 @@ import os
import unittest
from test.support.import_helper import import_module
from test.support.os_helper import TESTFN, unlink
-msilib = import_module('msilib')
+import warnings
+with warnings.catch_warnings():
+ warnings.simplefilter("ignore", DeprecationWarning)
+ msilib = import_module('msilib')
import msilib.schema