Skip to content

feat: Add audioop-lts for python 3.13+ #1713

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 3, 2024

feat: Add audioop-lts for python 3.13+

fe5b8cf
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Merged

feat: Add audioop-lts for python 3.13+ #1713

feat: Add audioop-lts for python 3.13+
fe5b8cf
Select commit
Loading
Failed to load commit list.
GitHub Actions / Pytest Results failed Jun 28, 2024 in 0s

26 tests run, 24 passed, 0 skipped, 2 failed.

Annotations

Check failure on line 487 in tests/test_bot.py

See this annotation in the file changed.

@github-actions github-actions / Pytest Results

test_bot.test_voice

AssertionError: assert 220 != 220
 +  where 220 = <Player(Thread-4, stopped daemon 140206187476544)>._sent_payloads
 +    where <Player(Thread-4, stopped daemon 140206187476544)> = <ActiveVoiceState: channel=GuildVoice(id=1256241053560868917, name='_test_voice_two-fe5b8cf', type=<ChannelType.GUILD_VOICE: 2>) guild=Guild(id=1041449294022070292, name='NAFF Test Suite', description=None) volume=0.5 playing=False audio=<AudioVolume: tests/test_audio.mp3>>.player
Raw output
bot = <interactions.client.client.Client object at 0x7f845efd83d0>
guild = Guild(id=1041449294022070292, name='NAFF Test Suite', description=None)

    @pytest.mark.asyncio
    async def test_voice(bot: Client, guild: Guild) -> None:
        test_channel = await guild.create_voice_channel(f"_test_voice-{bot.suffix}")
        test_channel_two = await guild.create_voice_channel(f"_test_voice_two-{bot.suffix}")
        try:
            try:
                import nacl  # noqa
            except ImportError:
                # testing on a non-voice extra
                return
    
            vc = await test_channel.connect(deafened=True)
            assert vc == bot.get_bot_voice_state(guild.id)
    
            audio = AudioVolume("tests/test_audio.mp3")
            vc.play_no_wait(audio)
            await asyncio.sleep(5)
    
            assert len(vc.current_audio.buffer) != 0
            assert vc.player._sent_payloads != 0
    
            await vc.move(test_channel_two)
            await asyncio.sleep(2)
    
            _before = vc.player._sent_payloads
    
            await test_channel_two.connect(deafened=True)
    
            await asyncio.sleep(2)
    
>           assert vc.player._sent_payloads != _before
E           AssertionError: assert 220 != 220
E            +  where 220 = <Player(Thread-4, stopped daemon 140206187476544)>._sent_payloads
E            +    where <Player(Thread-4, stopped daemon 140206187476544)> = <ActiveVoiceState: channel=GuildVoice(id=1256241053560868917, name='_test_voice_two-fe5b8cf', type=<ChannelType.GUILD_VOICE: 2>) guild=Guild(id=1041449294022070292, name='NAFF Test Suite', description=None) volume=0.5 playing=False audio=<AudioVolume: tests/test_audio.mp3>>.player

_before    = 220
audio      = <AudioVolume: tests/test_audio.mp3>
bot        = <interactions.client.client.Client object at 0x7f845efd83d0>
guild      = Guild(id=1041449294022070292, name='NAFF Test Suite', description=None)
nacl       = <module 'nacl' from '/opt/hostedtoolcache/Python/3.10.14/x64/lib/python3.10/site-packages/nacl/__init__.py'>
test_channel = GuildVoice(id=1256241052373880863, name='_test_voice-fe5b8cf', type=<ChannelType.GUILD_VOICE: 2>)
test_channel_two = GuildVoice(id=1256241053560868917, name='_test_voice_two-fe5b8cf', type=<ChannelType.GUILD_VOICE: 2>)
vc         = <ActiveVoiceState: channel=None guild=Guild(id=1041449294022070292, name='NAFF Test Suite', description=None) volume=0.5 playing=False audio=<AudioVolume: tests/test_audio.mp3>>

tests/test_bot.py:487: AssertionError

Check failure on line 1 in tests/test_bot.py

See this annotation in the file changed.

@github-actions github-actions / Pytest Results

test_bot.test_emoji

failed on teardown with "exceptiongroup.ExceptionGroup: errors while tearing down <Module test_bot.py> (2 sub-exceptions)"
Raw output
+ Exception Group Traceback (most recent call last):
  |   File "/opt/hostedtoolcache/Python/3.10.14/x64/lib/python3.10/site-packages/_pytest/runner.py", line 341, in from_call
  |     result: Optional[TResult] = func()
  |   File "/opt/hostedtoolcache/Python/3.10.14/x64/lib/python3.10/site-packages/_pytest/runner.py", line 241, in <lambda>
  |     lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise
  |   File "/opt/hostedtoolcache/Python/3.10.14/x64/lib/python3.10/site-packages/pluggy/_hooks.py", line 513, in __call__
  |     return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
  |   File "/opt/hostedtoolcache/Python/3.10.14/x64/lib/python3.10/site-packages/pluggy/_manager.py", line 120, in _hookexec
  |     return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
  |   File "/opt/hostedtoolcache/Python/3.10.14/x64/lib/python3.10/site-packages/pluggy/_callers.py", line 139, in _multicall
  |     raise exception.with_traceback(exception.__traceback__)
  |   File "/opt/hostedtoolcache/Python/3.10.14/x64/lib/python3.10/site-packages/pluggy/_callers.py", line 122, in _multicall
  |     teardown.throw(exception)  # type: ignore[union-attr]
  |   File "/opt/hostedtoolcache/Python/3.10.14/x64/lib/python3.10/site-packages/_pytest/threadexception.py", line 92, in pytest_runtest_teardown
  |     yield from thread_exception_runtest_hook()
  |   File "/opt/hostedtoolcache/Python/3.10.14/x64/lib/python3.10/site-packages/_pytest/threadexception.py", line 63, in thread_exception_runtest_hook
  |     yield
  |   File "/opt/hostedtoolcache/Python/3.10.14/x64/lib/python3.10/site-packages/pluggy/_callers.py", line 122, in _multicall
  |     teardown.throw(exception)  # type: ignore[union-attr]
  |   File "/opt/hostedtoolcache/Python/3.10.14/x64/lib/python3.10/site-packages/_pytest/unraisableexception.py", line 95, in pytest_runtest_teardown
  |     yield from unraisable_exception_runtest_hook()
  |   File "/opt/hostedtoolcache/Python/3.10.14/x64/lib/python3.10/site-packages/_pytest/unraisableexception.py", line 65, in unraisable_exception_runtest_hook
  |     yield
  |   File "/opt/hostedtoolcache/Python/3.10.14/x64/lib/python3.10/site-packages/pluggy/_callers.py", line 122, in _multicall
  |     teardown.throw(exception)  # type: ignore[union-attr]
  |   File "/opt/hostedtoolcache/Python/3.10.14/x64/lib/python3.10/site-packages/_pytest/logging.py", line 857, in pytest_runtest_teardown
  |     yield from self._runtest_for(item, "teardown")
  |   File "/opt/hostedtoolcache/Python/3.10.14/x64/lib/python3.10/site-packages/_pytest/logging.py", line 833, in _runtest_for
  |     yield
  |   File "/opt/hostedtoolcache/Python/3.10.14/x64/lib/python3.10/site-packages/pluggy/_callers.py", line 122, in _multicall
  |     teardown.throw(exception)  # type: ignore[union-attr]
  |   File "/opt/hostedtoolcache/Python/3.10.14/x64/lib/python3.10/site-packages/_pytest/capture.py", line 883, in pytest_runtest_teardown
  |     return (yield)
  |   File "/opt/hostedtoolcache/Python/3.10.14/x64/lib/python3.10/site-packages/pluggy/_callers.py", line 103, in _multicall
  |     res = hook_impl.function(*args)
  |   File "/opt/hostedtoolcache/Python/3.10.14/x64/lib/python3.10/site-packages/_pytest/runner.py", line 188, in pytest_runtest_teardown
  |     item.session._setupstate.teardown_exact(nextitem)
  |   File "/opt/hostedtoolcache/Python/3.10.14/x64/lib/python3.10/site-packages/_pytest/runner.py", line 557, in teardown_exact
  |     raise exceptions[0]
  | exceptiongroup.ExceptionGroup: errors while tearing down <Module test_bot.py> (2 sub-exceptions)
  +-+---------------- 1 ----------------
    | Traceback (most recent call last):
    |   File "/opt/hostedtoolcache/Python/3.10.14/x64/lib/python3.10/site-packages/_pytest/runner.py", line 546, in teardown_exact
    |     fin()
    |   File "/opt/hostedtoolcache/Python/3.10.14/x64/lib/python3.10/site-packages/_pytest/fixtures.py", line 1023, in finish
    |     raise exceptions[0]
    |   File "/opt/hostedtoolcache/Python/3.10.14/x64/lib/python3.10/site-packages/_pytest/fixtures.py", line 1012, in finish
    |     fin()
    |   File "/opt/hostedtoolcache/Python/3.10.14/x64/lib/python3.10/site-packages/pytest_asyncio/plugin.py", line 342, in finalizer
    |     event_loop.run_until_complete(async_finalizer())
    |   File "/opt/hostedtoolcache/Python/3.10.14/x64/lib/python3.10/asyncio/base_events.py", line 624, in run_until_complete
    |     self._check_closed()
    |   File "/opt/hostedtoolcache/Python/3.10.14/x64/lib/python3.10/asyncio/base_events.py", line 515, in _check_closed
    |     raise RuntimeError('Event loop is closed')
    | RuntimeError: Event loop is closed
    +---------------- 2 ----------------
    | Traceback (most recent call last):
    |   File "/opt/hostedtoolcache/Python/3.10.14/x64/lib/python3.10/site-packages/_pytest/runner.py", line 546, in teardown_exact
    |     fin()
    |   File "/opt/hostedtoolcache/Python/3.10.14/x64/lib/python3.10/site-packages/_pytest/fixtures.py", line 1023, in finish
    |     raise exceptions[0]
    |   File "/opt/hostedtoolcache/Python/3.10.14/x64/lib/python3.10/site-packages/_pytest/fixtures.py", line 1012, in finish
    |     fin()
    |   File "/opt/hostedtoolcache/Python/3.10.14/x64/lib/python3.10/site-packages/pytest_asyncio/plugin.py", line 342, in finalizer
    |     event_loop.run_until_complete(async_finalizer())
    |   File "/opt/hostedtoolcache/Python/3.10.14/x64/lib/python3.10/asyncio/base_events.py", line 624, in run_until_complete
    |     self._check_closed()
    |   File "/opt/hostedtoolcache/Python/3.10.14/x64/lib/python3.10/asyncio/base_events.py", line 515, in _check_closed
    |     raise RuntimeError('Event loop is closed')
    | RuntimeError: Event loop is closed
    +------------------------------------