[vlc-commits] wrong indentation was causing few tests to be skipped

Alberto Invernizzi git at videolan.org
Mon Apr 6 12:25:53 CEST 2020


vlc/python | branch: master | Alberto Invernizzi <alby.inve at gmail.com> | Thu Apr  2 19:01:33 2020 +0200| [731bc258efcf8ead981f46c29abd70842fc505e4] | committer: Alberto Invernizzi

wrong indentation was causing few tests to be skipped

> http://git.videolan.org/gitweb.cgi/vlc/python.git/?a=commit;h=731bc258efcf8ead981f46c29abd70842fc505e4
---

 tests/test.py | 42 +++++++++++++++++++++---------------------
 1 file changed, 21 insertions(+), 21 deletions(-)

diff --git a/tests/test.py b/tests/test.py
index 66edae1..71c70dc 100755
--- a/tests/test.py
+++ b/tests/test.py
@@ -233,33 +233,33 @@ if generate is not None:
         def test_api_re_match(self):
             self.assertIsInstance(generate.api_re.match('LIBVLC_API void libvlc_clearerr (void);'), re.Match)
 
-    def test_at_param_re(self):
-        match = generate.at_param_re.match('@param p_mi media player')
-        self.assertEqual(match.group(1, 2), ('@param p_mi', ' media player'))
+        def test_at_param_re(self):
+            match = generate.at_param_re.match('@param p_mi media player')
+            self.assertEqual(match.group(1, 2), ('@param p_mi', ' media player'))
 
-    def test_class_re_method(self):
-        self.assertIsNone(generate.class_re.match('    def __new__(cls, arg=None):\n'))
+        def test_class_re_method(self):
+            self.assertIsNone(generate.class_re.match('    def __new__(cls, arg=None):\n'))
 
-    def test_class_re(self):
-        match = generate.class_re.match('class Instance:\n')
-        self.assertEqual(match.group(1), 'Instance')
+        def test_class_re(self):
+            match = generate.class_re.match('class Instance:\n')
+            self.assertEqual(match.group(1), 'Instance')
 
-    def test_def_re(self):
-        self.assertEqual(
-            generate.def_re.findall(
-                '\n    def __new__(cls, *args):\n\n   def get_instance(self):\n\n    def add_media(self, mrl):\n\n'),
-            ['__new__', 'get_instance', 'add_media'])
+        def test_def_re(self):
+            self.assertEqual(
+                generate.def_re.findall(
+                    '\n    def __new__(cls, *args):\n\n   def get_instance(self):\n\n    def add_media(self, mrl):\n\n'),
+                ['__new__', 'get_instance', 'add_media'])
 
-    def test_enum_pair_re_1(self):
-        self.assertEqual(generate.enum_pair_re.split('LIBVLC_WARNING=3'), ['LIBVLC_WARNING', '3'])
+        def test_enum_pair_re_1(self):
+            self.assertEqual(generate.enum_pair_re.split('LIBVLC_WARNING=3'), ['LIBVLC_WARNING', '3'])
 
-    def test_enum_pair_re_2(self):
-        self.assertEqual(
-            generate.enum_pair_re.split('libvlc_AudioChannel_Left    =  3'), ['libvlc_AudioChannel_Left', '3'])
+        def test_enum_pair_re_2(self):
+            self.assertEqual(
+                generate.enum_pair_re.split('libvlc_AudioChannel_Left    =  3'), ['libvlc_AudioChannel_Left', '3'])
 
-    def test_forward_re(self):
-        match = generate.forward_re.match('VLC_FORWARD_DECLARE_OBJECT(libvlc_media_list_t *) libvlc_media_subitems')
-        self.assertEqual(match.groups(), ('libvlc_media_list_t *', ' libvlc_media_subitems'))
+        def test_forward_re(self):
+            match = generate.forward_re.match('VLC_FORWARD_DECLARE_OBJECT(libvlc_media_list_t *) libvlc_media_subitems')
+            self.assertEqual(match.groups(), ('libvlc_media_list_t *', ' libvlc_media_subitems'))
 
 
 if __name__ == '__main__':



More information about the vlc-commits mailing list