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

Pavel Grunt pgrunt at redhat.com
Thu Jun 2 06:33:52 UTC 2016


On Sun, 2016-05-29 at 17:30 +0300, Snir Sheriber wrote:
> From: Frediano Ziglio <fziglio at redhat.com>
> 
> 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>
> ---
>  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):


More information about the Spice-devel mailing list