From: Jozef Urbanovsky jurbanov@redhat.com
recipes/regression_tests/phase3/ipsec_esp_ah_comp.py ============================================= division in py3 by default returns float, however, key is expecting an integer. Casting float to int
Signed-off-by: Jozef Urbanovsky jurbanov@redhat.com --- recipes/regression_tests/phase3/ipsec_esp_ah_comp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/recipes/regression_tests/phase3/ipsec_esp_ah_comp.py b/recipes/regression_tests/phase3/ipsec_esp_ah_comp.py index cde0cf7..05ceb0f 100644 --- a/recipes/regression_tests/phase3/ipsec_esp_ah_comp.py +++ b/recipes/regression_tests/phase3/ipsec_esp_ah_comp.py @@ -16,7 +16,7 @@ ciphers = [] #lenth param is in bits def generate_key(length): key = "0x" - key = key + (length/8) * "0b" + key = key + int(length/8) * "0b" return key
ciphers.append(('aes', 128))
On Thu, Feb 21, 2019 at 04:40:40PM +0100, jurbanov@redhat.com wrote:
From: Jozef Urbanovsky jurbanov@redhat.com
recipes/regression_tests/phase3/ipsec_esp_ah_comp.py
division in py3 by default returns float, however, key is expecting an integer. Casting float to int
Signed-off-by: Jozef Urbanovsky jurbanov@redhat.com
recipes/regression_tests/phase3/ipsec_esp_ah_comp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/recipes/regression_tests/phase3/ipsec_esp_ah_comp.py b/recipes/regression_tests/phase3/ipsec_esp_ah_comp.py index cde0cf7..05ceb0f 100644 --- a/recipes/regression_tests/phase3/ipsec_esp_ah_comp.py +++ b/recipes/regression_tests/phase3/ipsec_esp_ah_comp.py @@ -16,7 +16,7 @@ ciphers = [] #lenth param is in bits def generate_key(length): key = "0x"
- key = key + (length/8) * "0b"
- key = key + int(length/8) * "0b" return key
ciphers.append(('aes', 128))
2.20.1 _______________________________________________ LNST-developers mailing list -- lnst-developers@lists.fedorahosted.org To unsubscribe send an email to lnst-developers-leave@lists.fedorahosted.org Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedorahosted.org/archives/list/lnst-developers@lists.fedorahos...
thanks, pushed upstream.
-Ondrej
lnst-developers@lists.fedorahosted.org