Skip to content

Commit dd68b6e

Browse files
authored
test: Fix L0_model_update test (#7805)
1 parent a5b24d0 commit dd68b6e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

qa/L0_model_update/instance_update_test.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env python3
22

3-
# Copyright 2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
3+
# Copyright 2023-2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
44
#
55
# Redistribution and use in source and binary forms, with or without
66
# modification, are permitted provided that the following conditions
@@ -67,9 +67,7 @@ def setUp(self):
6767

6868
def tearDown(self):
6969
# Check if the test passed for this test case that is tearing down
70-
r = self.defaultTestResult()
71-
self._feedErrorsToResult(r, self._outcome.errors)
72-
# Use `r = self._outcome.result` for the above, if Python >= 3.11
70+
r = self._outcome.result
7371
passed = all(self != test_case for test_case, _ in r.errors + r.failures)
7472
if passed:
7573
# Do nothing if passed

0 commit comments

Comments
 (0)