mirror of
https://github.com/python/cpython.git
synced 2025-11-26 13:22:51 +00:00
bpo-9850: Deprecate the macpath module (#1540)
Co-Authored-By: Chi Hsuan Yen <yan12125@gmail.com>.
This commit is contained in:
parent
981096f98b
commit
89a1c93f04
4 changed files with 15 additions and 1 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue