[vlc-commits] python: remove useless MagickMock test

Olivier Aubert git at videolan.org
Mon Apr 6 12:28:00 CEST 2020


vlc/python | branch: master | Olivier Aubert <contact at olivieraubert.net> | Mon Apr  6 12:27:27 2020 +0200| [67374dddf288a92aa94c30e97b7538dcbdf0149f] | committer: Olivier Aubert

python: remove useless MagickMock test

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

 tests/test.py | 10 ----------
 1 file changed, 10 deletions(-)

diff --git a/tests/test.py b/tests/test.py
index 71c70dc..f5ad4bd 100755
--- a/tests/test.py
+++ b/tests/test.py
@@ -33,10 +33,6 @@ import ctypes
 import re
 import os
 import unittest
-try:
-    from unittest.mock import MagicMock # python3
-except ImportError:
-    MagicMock = None
 
 try:
     import urllib.parse as urllib # python3
@@ -63,12 +59,6 @@ print ("Checking " + vlc.__file__)
 
 
 class TestAuxMethods(unittest.TestCase):
-    if MagicMock is not None:
-        def test_try_fspath_incompatible_object(self):
-            test_object = MagicMock()
-            result = vlc.try_fspath(test_object)
-            self.assertIs(result, test_object)
-
     if Path is not None:
         def test_try_fspath_path_like_object(self):
             test_object = Path('test', 'path')



More information about the vlc-commits mailing list