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