From: Masashi Honma Date: Thu, 31 Jan 2019 08:15:55 +0000 (+0900) Subject: tests: Fix erp_home_realm_oom error on python3 X-Git-Tag: hostap_2_8~457 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=edab6c9dac76a28e1d25abbf15b89b5aab234578;p=thirdparty%2Fhostap.git tests: Fix erp_home_realm_oom error on python3 Only python3 warns to this bug. TypeError: '>' not supported between instances of 'type' and 'int' Exception: '>' not supported between instances of 'type' and 'int' Signed-off-by: Masashi Honma --- diff --git a/tests/hwsim/test_erp.py b/tests/hwsim/test_erp.py index 7da605287..762319899 100644 --- a/tests/hwsim/test_erp.py +++ b/tests/hwsim/test_erp.py @@ -515,7 +515,7 @@ def test_erp_home_realm_oom(dev, apdev): ca_cert="auth_serv/ca.pem", phase2="auth=PAP", erp="1", scan_freq="2412", wait_connect=False) dev[0].wait_connected(timeout=10) - if range > 1: + if count > 1: continue with alloc_fail(dev[0], count, "eap_get_realm"): dev[0].request("DISCONNECT")