diff options
author | jaseg <code@jaseg.net> | 2016-08-04 16:23:44 +0200 |
---|---|---|
committer | jaseg <code@jaseg.net> | 2016-08-04 16:23:44 +0200 |
commit | 588d74938c2fe84df0aed966a014faf82939db60 (patch) | |
tree | 9586fa0049c58b69e7ec3593d9d3f22fb7c632fc /mpv-test.py | |
parent | 73f2e87f66a2a5a2e14bb1c8b4a17bbf3eaf27ee (diff) | |
download | python-mpv-588d74938c2fe84df0aed966a014faf82939db60.tar.gz python-mpv-588d74938c2fe84df0aed966a014faf82939db60.tar.bz2 python-mpv-588d74938c2fe84df0aed966a014faf82939db60.zip |
Make video-pan-x and video-pan-y floats as they should be
Diffstat (limited to 'mpv-test.py')
-rwxr-xr-x | mpv-test.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/mpv-test.py b/mpv-test.py index 23a3d3a..10bb71b 100755 --- a/mpv-test.py +++ b/mpv-test.py @@ -38,11 +38,9 @@ class TestProperties(unittest.TestCase): for name, (ptype, access) in mpv.ALL_PROPERTIES.items(): if 'r' in access: name = name.replace('-', '_') - try: + with self.subTest(property_name=name): with self.swallow_mpv_errors(): rv = getattr(self.m, name) - except Exception as e: - raise RuntimeError('Error while testing property', name) if rv is not None: # Technically, any property can return None (even if of type e.g. int) self.assertEqual(type(rv), ptype, msg=name) |