Closed ktbyers closed 6 years ago
With the old code if data[key] returned a type long, then correct_class would get set to False here
data[key]
correct_class = isinstance(data[key], instance_class) and correct_class
And would never be fixed...so unit test would fail on a 32-bit machine.
Coverage remained the same at 61.015% when pulling 4b947047ce06b3641a57ffe91f4efd91a55ed43c on ktbyers:develop2 into e21f10f5f26b02d15ed0e73fe4e6476638d991e7 on napalm-automation:develop.
With the old code if
data[key]
returned a type long, then correct_class would get set to False hereAnd would never be fixed...so unit test would fail on a 32-bit machine.