From b35de956025b4a7c6e2b265600c2fbf91194228e Mon Sep 17 00:00:00 2001 From: baldurk Date: Wed, 22 Apr 2020 14:02:19 +0100 Subject: [PATCH] Fix python3 warning about use of 'is not' for literal comparison --- util/test/tests/D3D12/D3D12_PrimitiveID.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/test/tests/D3D12/D3D12_PrimitiveID.py b/util/test/tests/D3D12/D3D12_PrimitiveID.py index 7782a3b3d..02e96897c 100644 --- a/util/test/tests/D3D12/D3D12_PrimitiveID.py +++ b/util/test/tests/D3D12/D3D12_PrimitiveID.py @@ -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