summaryrefslogtreecommitdiff
path: root/mpv-test.py
diff options
context:
space:
mode:
authorjaseg <code@jaseg.net>2020-07-15 21:44:12 +0200
committerjaseg <code@jaseg.net>2020-07-15 22:04:03 +0200
commit400053e8d3052755aad3fab38f61dd8e46156715 (patch)
tree0a3886f5d3c0f68ab1c85782f14580ba9df3f590 /mpv-test.py
parent3fe42bfd9d03f157eeccb72c6064dc549a59651e (diff)
downloadpython-mpv-400053e8d3052755aad3fab38f61dd8e46156715.tar.gz
python-mpv-400053e8d3052755aad3fab38f61dd8e46156715.tar.bz2
python-mpv-400053e8d3052755aad3fab38f61dd8e46156715.zip
tests: Fix TestLifecycle.test_options for current mpv master
Diffstat (limited to 'mpv-test.py')
-rwxr-xr-xmpv-test.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/mpv-test.py b/mpv-test.py
index 55c7cad..75a67fb 100755
--- a/mpv-test.py
+++ b/mpv-test.py
@@ -525,7 +525,8 @@ class TestLifecycle(unittest.TestCase):
mpv.MPV(this_option_does_not_exists=23)
m = mpv.MPV(osd_level=0, loop='inf', deinterlace=False)
self.assertEqual(m.osd_level, 0)
- self.assertEqual(m.loop, True)
+ # For compatibility with mpv master (v0.32.0-585-gfba1c681b8) accept both
+ self.assertIn(m.loop, ['inf', True])
self.assertEqual(m.deinterlace, False)
m.terminate()