From b8c46f2a32d0d8c2dc6ef0867f85f63cf076a004 Mon Sep 17 00:00:00 2001 From: Petr Viktorin Date: Wed, 15 Jul 2015 16:38:06 +0200 Subject: Modernize number literals Use Python-3 compatible syntax, without breaking compatibility with py 2.7 - Octals literals start with 0o to prevent confusion - The "L" at the end of large int literals is not required as they use long on Python 2 automatically. - Using 'int' instead of 'long' for small numbers is OK in all cases except strict type checking checking, e.g. type(0). https://fedorahosted.org/freeipa/ticket/4985 Reviewed-By: Jan Cholasta --- ipatests/test_xmlrpc/test_dns_plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ipatests/test_xmlrpc/test_dns_plugin.py') diff --git a/ipatests/test_xmlrpc/test_dns_plugin.py b/ipatests/test_xmlrpc/test_dns_plugin.py index 83b5b2aec..7e5058b09 100644 --- a/ipatests/test_xmlrpc/test_dns_plugin.py +++ b/ipatests/test_xmlrpc/test_dns_plugin.py @@ -1832,7 +1832,7 @@ class test_dns(Declarative): dict( desc='Set SOA serial of zone %r to high number' % zone1, - command=('dnszone_mod', [zone1], {'idnssoaserial': 4294967295L}), + command=('dnszone_mod', [zone1], {'idnssoaserial': 4294967295}), expected={ 'value': zone1_absolute_dnsname, 'summary': None, -- cgit