File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments