From 2ca25cd3483393f458f171bda68bbe12e8cd2c23 Mon Sep 17 00:00:00 2001 From: Ian Clester Date: Sun, 6 Jun 2021 06:01:39 -0400 Subject: [PATCH] Include 'audioop' in standard library. (#1623) Co-authored-by: Roman Yurchak --- cpython/Setup.local | 1 + docs/project/changelog.md | 2 ++ src/tests/python_tests.txt | 11 +++++------ 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/cpython/Setup.local b/cpython/Setup.local index b12800232..e5b89d299 100644 --- a/cpython/Setup.local +++ b/cpython/Setup.local @@ -7,6 +7,7 @@ *static* array arraymodule.c # array objects +audioop audioop.c # Operations on audio samples math mathmodule.c _math.c # -lm # math library functions, e.g. sin() cmath cmathmodule.c # complex math functions _contextvars _contextvarsmodule.c diff --git a/docs/project/changelog.md b/docs/project/changelog.md index 3cee1a01e..6c01d79ca 100644 --- a/docs/project/changelog.md +++ b/docs/project/changelog.md @@ -40,6 +40,8 @@ substitutions: can be disabled with the `fullStdLib` parameter set to `false`. All optional stdlib modules can then be loaded as needed with {any}`pyodide.loadPackage`. {pr}`1543` +- The standard library module `audioop` is now included, making the `wave`, + `sndhdr`, `aifc`, and `sunau` modules usable. {pr}`1623` ### Python / JS type conversions diff --git a/src/tests/python_tests.txt b/src/tests/python_tests.txt index d3894e711..086d146ae 100644 --- a/src/tests/python_tests.txt +++ b/src/tests/python_tests.txt @@ -12,7 +12,6 @@ # - platform-specific: This is testing something about a particular platform # that isn't relevant here # - async: relies on async -# - audioop: Requires the audioop module # - floating point: Failures caused by floating-point differences # - threading: Failures due to lack of a threading implementation # - subprocess: Failures caused by no subprocess module. Some of these are @@ -44,7 +43,7 @@ test__osx_support platform-specific test__xxsubinterpreters test_abc test_abstract_numbers -test_aifc audioop +test_aifc test_argparse crash-chrome test_array test_asdl_parser @@ -76,7 +75,7 @@ test_asyncio.test_windows_events test_asyncio.test_windows_utils test_asyncore bad ioctl syscall async test_atexit -test_audioop audioop +test_audioop test_audit subprocess test_augassign test_base64 @@ -429,7 +428,7 @@ test_slice test_smtpd test_smtplib bad ioctl syscall 21537 test_smtpnet -test_sndhdr audioop +test_sndhdr test_socket test_socketserver test_sort @@ -451,7 +450,7 @@ test_structmembers test_structseq test_subclassinit test_subprocess -test_sunau audioop +test_sunau test_sundry test_super test_support multiprocessing @@ -531,7 +530,7 @@ test_uuid subprocess test_venv nonsense test_wait3 threading test_wait4 threading -test_wave audioop +test_wave test_weakref threading test_weakset test_webbrowser replaced