Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

test: Fix L0_model_update test #7805

Merged
merged 1 commit into from
Nov 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions qa/L0_model_update/instance_update_test.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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
Expand Down
Loading