summaryrefslogtreecommitdiff
path: root/Lib/test/test_pyclbr.py
diff options
context:
space:
mode:
authorBrian Curtin <brian@python.org>2017-11-10 11:38:25 -0500
committerGitHub <noreply@github.com>2017-11-10 11:38:25 -0500
commit9f914a01affc55abe799afc521ce71612bb495a5 (patch)
treeb002fd748ecccf5a416b655a85aef7fb30bd6633 /Lib/test/test_pyclbr.py
parent5e0df74b3bc6391e9a7eba0fd84531ed99a78ae9 (diff)
downloadcpython-git-9f914a01affc55abe799afc521ce71612bb495a5.tar.gz
bpo-31985: Deprecate openfp in aifc, sunau, and wave (#4344)
The openfp functions of aifp, sunau, and wave had pointed to the open function of each module since 1993 as a matter of backwards compatibility. In the case of aifc.openfp, it was both undocumented and untested. This change begins the formal deprecation of those openfp functions, with their removal coming in 3.9. This additionally adds a TODO in test_pyclbr around using aifc.openfp, though it shouldn't be changed until removal in 3.9.
Diffstat (limited to 'Lib/test/test_pyclbr.py')
-rw-r--r--Lib/test/test_pyclbr.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_pyclbr.py b/Lib/test/test_pyclbr.py
index 238eb71cd8..eaab591f74 100644
--- a/Lib/test/test_pyclbr.py
+++ b/Lib/test/test_pyclbr.py
@@ -223,6 +223,8 @@ class PyclbrTest(TestCase):
cm('random', ignore=('Random',)) # from _random import Random as CoreGenerator
cm('cgi', ignore=('log',)) # set with = in module
cm('pickle', ignore=('partial',))
+ # TODO(briancurtin): openfp is deprecated as of 3.7.
+ # Update this once it has been removed.
cm('aifc', ignore=('openfp', '_aifc_params')) # set with = in module
cm('sre_parse', ignore=('dump', 'groups', 'pos')) # from sre_constants import *; property
cm('pdb')