[Spice-commits] python_modules/ptypes.py

Frediano Ziglio fziglio at kemper.freedesktop.org
Thu Jun 2 07:35:04 UTC 2016


 python_modules/ptypes.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit d3dd8bcea3b700f837e2a2e1ac6662cff311688f
Author: Frediano Ziglio <fziglio at redhat.com>
Date:   Mon May 16 16:54:21 2016 +0100

    fix wrong assert check
    
    The assert were never triggered as always True
    
    Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
    Acked-by: Pavel Grunt <pgrunt at redhat.com>

diff --git a/python_modules/ptypes.py b/python_modules/ptypes.py
index 753d363..74f3e55 100644
--- a/python_modules/ptypes.py
+++ b/python_modules/ptypes.py
@@ -223,7 +223,7 @@ class TypeRef(Type):
         return _types_by_name[self.name]
 
     def register(self):
-        assert True, "Can't register TypeRef!"
+        assert False, "Can't register TypeRef!"
 
 
 class IntegerType(Type):


More information about the Spice-commits mailing list