summaryrefslogtreecommitdiff
path: root/psutil/tests/test_testutils.py
diff options
context:
space:
mode:
authorGiampaolo Rodola <g.rodola@gmail.com>2023-04-10 23:48:49 +0200
committerGiampaolo Rodola <g.rodola@gmail.com>2023-04-10 23:48:49 +0200
commitf11c0552f2bcfc8bc3afa35d29adb4dc5525c092 (patch)
tree79eadf1f560dcbc4f008975979e04f8e4cfbe57d /psutil/tests/test_testutils.py
parent6b8700270e2c32e876dfca081dbbec832aa4e7a0 (diff)
parent4dd1e215f3d49fb3a5074b82430bf6199c14898e (diff)
downloadpsutil-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-xpsutil/tests/test_testutils.py10
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):