[vlc-commits] python bindings: use assertTrue instead ot assert_

Olivier Aubert git at videolan.org
Mon Sep 10 17:00:17 CEST 2012


vlc/python | branch: master | Olivier Aubert <olivier.aubert at liris.cnrs.fr> | Mon Sep 10 16:47:52 2012 +0200| [57fb61eaee693bacbbb2013dec954f95596061c5] | committer: Olivier Aubert

python bindings: use assertTrue instead ot assert_

assert_ is deprecated in python3

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

 test.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test.py b/test.py
index 34af13d..d5fc151 100755
--- a/test.py
+++ b/test.py
@@ -61,7 +61,7 @@ class TestVLCAPI(unittest.TestCase):
     # Basic libvlc tests
     def test_instance_creation(self):
         i=vlc.Instance()
-        self.assert_(i)
+        self.assertTrue(i)
 
     def test_libvlc_media(self):
         mrl='/tmp/foo.avi'



More information about the vlc-commits mailing list