[PATCH spice-common 2/5] fix wrong assert check

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Frediano Ziglio <fziglio@xxxxxxxxxx>

The assert were never triggered as always True

Signed-off-by: Frediano Ziglio <fziglio@xxxxxxxxxx>
---
 python_modules/ptypes.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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):
-- 
2.5.5

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]