diff options
author | Victor Stinner <vstinner@redhat.com> | 2019-06-17 22:00:24 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-17 22:00:24 (GMT) |
commit | ac7b1a3f32cc81520e8962352294006d65744028 (patch) | |
tree | e92021fabcbc998940d243e5911473d50149c038 /Lib/test/audiotests.py | |
parent | 8fac1221097aaf6ac37ed9ea727ee7892085e183 (diff) | |
download | cpython-ac7b1a3f32cc81520e8962352294006d65744028.zip cpython-ac7b1a3f32cc81520e8962352294006d65744028.tar.gz cpython-ac7b1a3f32cc81520e8962352294006d65744028.tar.bz2 |
bpo-37320: Remove openfp() of aifc, sunau and wave (GH-14169)
aifc.openfp() alias to aifc.open(), sunau.openfp() alias to
sunau.open(), and wave.openfp() alias to wave.open() have been
removed. They were deprecated since Python 3.7.
Diffstat (limited to 'Lib/test/audiotests.py')
-rw-r--r-- | Lib/test/audiotests.py | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/Lib/test/audiotests.py b/Lib/test/audiotests.py index 0dad017..d3e8e9e 100644 --- a/Lib/test/audiotests.py +++ b/Lib/test/audiotests.py @@ -1,7 +1,6 @@ from test.support import findfile, TESTFN, unlink import array import io -from unittest import mock import pickle @@ -50,17 +49,6 @@ class AudioTests: self.assertEqual(pickle.loads(dump), params) -class AudioMiscTests(AudioTests): - - def test_openfp_deprecated(self): - arg = "arg" - mode = "mode" - with mock.patch(f"{self.module.__name__}.open") as mock_open, \ - self.assertWarns(DeprecationWarning): - self.module.openfp(arg, mode=mode) - mock_open.assert_called_with(arg, mode=mode) - - class AudioWriteTests(AudioTests): def create_file(self, testfile): |