summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_macpath.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2017-05-15 09:01:21 (GMT)
committerGitHub <noreply@github.com>2017-05-15 09:01:21 (GMT)
commit89a1c93f046f9726310f8362227be7b8e50eea22 (patch)
tree5c862a5d2a6abab0ad25e159865720fb8364661d /Lib/test/test_macpath.py
parent981096f98b9c131594b0ac85ad01b63cbd11aa0a (diff)
downloadcpython-89a1c93f046f9726310f8362227be7b8e50eea22.zip
cpython-89a1c93f046f9726310f8362227be7b8e50eea22.tar.gz
cpython-89a1c93f046f9726310f8362227be7b8e50eea22.tar.bz2
bpo-9850: Deprecate the macpath module (#1540)
Co-Authored-By: Chi Hsuan Yen <yan12125@gmail.com>.
Diffstat (limited to 'Lib/test/test_macpath.py')
-rw-r--r--Lib/test/test_macpath.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/Lib/test/test_macpath.py b/Lib/test/test_macpath.py
index 0698ff5..540bf22 100644
--- a/Lib/test/test_macpath.py
+++ b/Lib/test/test_macpath.py
@@ -1,6 +1,12 @@
-import macpath
from test import test_genericpath
import unittest
+import warnings
+
+
+with warnings.catch_warnings():
+ warnings.filterwarnings("ignore", "the macpath module is deprecated",
+ DeprecationWarning)
+ import macpath
class MacPathTestCase(unittest.TestCase):