[PATCH v2 16/38] tests: Fix erp_home_realm_oom error on python3

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <masashi.honma@xxxxxxxxx>
---
 tests/hwsim/test_erp.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/hwsim/test_erp.py b/tests/hwsim/test_erp.py
index 64e77cd11..0f16919a4 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")
-- 
2.17.1


_______________________________________________
Hostap mailing list
Hostap@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/hostap



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux