]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Fix erp_home_realm_oom error on python3
authorMasashi Honma <masashi.honma@gmail.com>
Thu, 31 Jan 2019 08:15:55 +0000 (17:15 +0900)
committerJouni Malinen <j@w1.fi>
Mon, 4 Feb 2019 10:26:34 +0000 (12:26 +0200)
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@gmail.com>
tests/hwsim/test_erp.py

index 7da605287ee2ca10a274d541543609ec3ce1729e..762319899f99d7ea25c003d9e75183107349feba 100644 (file)
@@ -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")