Skip to content
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

tests: temporarily skip broken tests on win32 #3870

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions tests/plugins/test_twitch.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import requests_mock

from streamlink import Streamlink
from streamlink.compat import is_win32
from streamlink.plugin import PluginError
from streamlink.plugins.twitch import Twitch, TwitchHLSStream, TwitchHLSStreamReader, TwitchHLSStreamWriter
from tests.mixins.stream_hls import EventedHLSStreamWriter, Playlist, Segment as _Segment, Tag, TestMixinStreamHLS
Expand Down Expand Up @@ -75,6 +76,7 @@ class _TwitchHLSStream(TwitchHLSStream):
__reader__ = _TwitchHLSStreamReader


@unittest.skipIf(is_win32, "temporarily skip EventedHLSStreamWriter related tests on Windows")
@patch("streamlink.stream.hls.HLSStreamWorker.wait", MagicMock(return_value=True))
class TestTwitchHLSStream(TestMixinStreamHLS, unittest.TestCase):
__stream__ = _TwitchHLSStream
Expand Down
2 changes: 2 additions & 0 deletions tests/streams/test_hls.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from Crypto.Cipher import AES
from Crypto.Util.Padding import pad

from streamlink.compat import is_win32
from streamlink.session import Streamlink
from streamlink.stream import hls
from tests.mixins.stream_hls import EventedHLSStreamWriter, Playlist, Segment, Tag, TestMixinStreamHLS
Expand Down Expand Up @@ -144,6 +145,7 @@ def test_map(self):
self.assertTrue(self.called(map2, once=True), "Downloads second map only once")


@unittest.skipIf(is_win32, "temporarily skip EventedHLSStreamWriter related tests on Windows")
@patch("streamlink.stream.hls.HLSStreamWorker.wait", Mock(return_value=True))
class TestHLSStreamEncrypted(TestMixinStreamHLS, unittest.TestCase):
__stream__ = EventedHLSStream
Expand Down
2 changes: 2 additions & 0 deletions tests/streams/test_hls_filtered.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from threading import Event
from unittest.mock import MagicMock, call, patch

from streamlink.compat import is_win32
from streamlink.stream.hls import HLSStream, HLSStreamReader
from tests.mixins.stream_hls import EventedHLSStreamWriter, Playlist, Segment, TestMixinStreamHLS

Expand All @@ -23,6 +24,7 @@ class _TestSubjectHLSStream(HLSStream):
__reader__ = _TestSubjectHLSReader


@unittest.skipIf(is_win32, "temporarily skip EventedHLSStreamWriter related tests on Windows")
@patch("streamlink.stream.hls.HLSStreamWorker.wait", MagicMock(return_value=True))
class TestFilteredHLSStream(TestMixinStreamHLS, unittest.TestCase):
__stream__ = _TestSubjectHLSStream
Expand Down