Skip to content

Commit

Permalink
tests: temporarily skip broken tests on win32
Browse files Browse the repository at this point in the history
Temporarily skip EventedHLSStreamWriter related tests on Windows
  • Loading branch information
bastimeyer committed Jul 15, 2021
1 parent d04767f commit af5195e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
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

0 comments on commit af5195e

Please sign in to comment.