From 76813338732414c39023c59291969ea313476666 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Ma=C5=9Blanka?= <piotr.maslanka@henrietta.com.pl> Date: Wed, 6 Mar 2024 12:14:22 +0100 Subject: [PATCH] fixed unit tests to run on Py3.12 --- CHANGELOG.md | 1 + tests/test_coding/test_overloading.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e0a85801..6c973fdc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,4 +8,5 @@ Build system * Python 3.6 support dropped as it does not emply pyproject.toml, which is necessary to build this +* fixed unit tests to run on Py3.12 * removed Docker unit tests diff --git a/tests/test_coding/test_overloading.py b/tests/test_coding/test_overloading.py index c189ff59..89002b01 100644 --- a/tests/test_coding/test_overloading.py +++ b/tests/test_coding/test_overloading.py @@ -35,11 +35,11 @@ class TestOverloading(unittest.TestCase): @overload def fun(a: B): - self.assertEquals(type(a), B) + self.assertEqual(type(a), B) @fun.overload def fun(a: A): - self.assertEquals(type(a), A) + self.assertEqual(type(a), A) fun(A()) fun(B()) -- GitLab