From 5f675114606c664aaad283c6763c546d239cbbf2 Mon Sep 17 00:00:00 2001 From: krishung5 Date: Fri, 15 Nov 2024 16:55:36 -0800 Subject: [PATCH] Fix --- qa/L0_model_update/instance_update_test.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/qa/L0_model_update/instance_update_test.py b/qa/L0_model_update/instance_update_test.py index 1423632868..554d08c46e 100755 --- a/qa/L0_model_update/instance_update_test.py +++ b/qa/L0_model_update/instance_update_test.py @@ -1,6 +1,6 @@ #!/usr/bin/env python3 -# Copyright 2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# Copyright 2023-2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions @@ -67,9 +67,7 @@ def setUp(self): def tearDown(self): # Check if the test passed for this test case that is tearing down - r = self.defaultTestResult() - self._feedErrorsToResult(r, self._outcome.errors) - # Use `r = self._outcome.result` for the above, if Python >= 3.11 + r = self._outcome.result passed = all(self != test_case for test_case, _ in r.errors + r.failures) if passed: # Do nothing if passed