From 8c63e6efb03fd5596500fba77caacc65a17a46cf Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Piotr=20Ma=C5=9Blanka?= <piotr.maslanka@henrietta.com.pl>
Date: Tue, 5 Mar 2024 08:57:12 +0100
Subject: [PATCH] fix unit test

---
 tests/test_coding/test_optionals.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/test_coding/test_optionals.py b/tests/test_coding/test_optionals.py
index d94def9c..aec61bca 100644
--- a/tests/test_coding/test_optionals.py
+++ b/tests/test_coding/test_optionals.py
@@ -37,8 +37,8 @@ class TestOptionals(unittest.TestCase):
         self.assertEqual(obj.a, 6)
         self.assertEqual(opt.a, 6)
         del opt.a
-        self.assertRaises(AttributeError, obj.a)
-        self.assertRaises(AttributeError, opt.a)
+        self.assertRaises(AttributeError, lambda: obj.a)
+        self.assertRaises(AttributeError, lambda: opt.a)
 
     def test_list(self):
         a = [1, 2, 3]
-- 
GitLab