mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
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.
This commit is contained in:
parent
5e0df74b3b
commit
9f914a01af
12 changed files with 48 additions and 6 deletions
|
@ -7,6 +7,7 @@ import io
|
|||
import sys
|
||||
import struct
|
||||
import aifc
|
||||
import warnings
|
||||
|
||||
|
||||
class AifcTest(audiotests.AudioWriteTests,
|
||||
|
@ -144,7 +145,9 @@ class AifcALAWTest(AifcTest, unittest.TestCase):
|
|||
frames = byteswap(frames, 2)
|
||||
|
||||
|
||||
class AifcMiscTest(audiotests.AudioTests, unittest.TestCase):
|
||||
class AifcMiscTest(audiotests.AudioMiscTests, unittest.TestCase):
|
||||
module = aifc
|
||||
|
||||
def test_skipunknown(self):
|
||||
#Issue 2245
|
||||
#This file contains chunk types aifc doesn't recognize.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue