diff options
author | Giampaolo Rodola <g.rodola@gmail.com> | 2023-04-10 23:48:49 +0200 |
---|---|---|
committer | Giampaolo Rodola <g.rodola@gmail.com> | 2023-04-10 23:48:49 +0200 |
commit | f11c0552f2bcfc8bc3afa35d29adb4dc5525c092 (patch) | |
tree | 79eadf1f560dcbc4f008975979e04f8e4cfbe57d /psutil/tests/test_testutils.py | |
parent | 6b8700270e2c32e876dfca081dbbec832aa4e7a0 (diff) | |
parent | 4dd1e215f3d49fb3a5074b82430bf6199c14898e (diff) | |
download | psutil-f11c0552f2bcfc8bc3afa35d29adb4dc5525c092.tar.gz |
merge from master
Signed-off-by: Giampaolo Rodola <g.rodola@gmail.com>
Diffstat (limited to 'psutil/tests/test_testutils.py')
-rwxr-xr-x | psutil/tests/test_testutils.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/psutil/tests/test_testutils.py b/psutil/tests/test_testutils.py index e757e017..77e52b69 100755 --- a/psutil/tests/test_testutils.py +++ b/psutil/tests/test_testutils.py @@ -406,16 +406,16 @@ class TestMemLeakClass(TestMemoryLeak): self.assertEqual(len(ls), times + 1) def test_execute_w_exc(self): - def fun(): + def fun_1(): 1 / 0 - self.execute_w_exc(ZeroDivisionError, fun) + self.execute_w_exc(ZeroDivisionError, fun_1) with self.assertRaises(ZeroDivisionError): - self.execute_w_exc(OSError, fun) + self.execute_w_exc(OSError, fun_1) - def fun(): + def fun_2(): pass with self.assertRaises(AssertionError): - self.execute_w_exc(ZeroDivisionError, fun) + self.execute_w_exc(ZeroDivisionError, fun_2) class TestTestingUtils(PsutilTestCase): |