Fix python3 warning about use of 'is not' for literal comparison

This commit is contained in:
baldurk
2020-04-22 14:02:19 +01:00
parent 9b0ac380f4
commit b35de95602
+1 -1
View File
@@ -18,7 +18,7 @@ class D3D12_PrimitiveID(rdtest.TestCase):
primInput = self.find_input_source_var(trace, rd.ShaderBuiltin.PrimitiveIndex)
if primInput is None:
# If we didn't find it, then we should be expecting a 0
if len(expected_prim) > 1 or expected_prim[0] is not 0:
if len(expected_prim) > 1 or expected_prim[0] != 0:
rdtest.log.error("Expected prim {} at {},{} did not match actual prim {}.".format(
str(expected_prim), x, y, prim))
return False