Re: [Libguestfs] [PATCH 6/7] python: Python 3 no longer recognizes long integers

Richard W.M. Jones
Mon, 13 Jan 2014 13:23:39 -0000

On Sat, Jan 11, 2014 at 12:12:51AM +0100, Hilko Bengen
wrote:
> ---
>  python/t/120-rlenvalue.py | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/python/t/120-rlenvalue.py b/python/t/120-rlenvalue.py
> index ebc48f5..a9b2129 100644
> --- a/python/t/120-rlenvalue.py
> +++ b/python/t/120-rlenvalue.py
> @@ -38,5 +38,5 @@ moderate_value_node = h.node_get_child (root,
"ModerateValueParent")
>  moderate_value_value = h.node_get_value (moderate_value_node,
"33Bytes")
>
>  r = h.value_data_cell_offset (moderate_value_value)
> -assert r[0] == 37L
> -assert r[1] == 8712L
> +assert r[0] == 37
> +assert r[1] == 8712

As long as this still works on Python 2, ACK.

Rich.

--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
virt-top is 'top' for virtual machines.  Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.