From f439ea958f7860866663377a709758c83ee1712f 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:44:29 +0100
Subject: [PATCH] fix unit tests

---
 pyproject.toml                               | 2 +-
 satella/instrumentation/memory/conditions.py | 6 +++---
 tests/test_instrumentation/test_memory.py    | 2 +-
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/pyproject.toml b/pyproject.toml
index 429d63c8..0a3cae39 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -90,7 +90,7 @@ log_cli = true
 [tool.pylint.format]
 max-line-length = 120
 
-[tool.pylint."MESSAGES CONTROL"]
+[tool.pylint.'MESSAGES CONTROL']
 disable = '''
     missing-module-docstring,
     missing-class-docstring,
diff --git a/satella/instrumentation/memory/conditions.py b/satella/instrumentation/memory/conditions.py
index 7ccb0a74..18d94b97 100644
--- a/satella/instrumentation/memory/conditions.py
+++ b/satella/instrumentation/memory/conditions.py
@@ -39,7 +39,7 @@ class ZerothSeverity(BaseCondition):
 
 
 class OperationJoin(BaseCondition):
-    __slots__ = ('conditions',)
+    __slots__ = 'conditions',
 
     _OPERATOR = lambda y, z: y and z        # pylint: disable=invalid-name
     _STARTING_VALUE = False                 # pylint: disable=invalid-name
@@ -71,7 +71,7 @@ class All(OperationJoin):
 
 class Not(BaseCondition):
     """True only if provided condition is false"""
-    __slots__ = ('condition',)
+    __slots__ = 'condition',
 
     def __init__(self, condition: BaseCondition):
         self.condition = condition
@@ -128,7 +128,7 @@ class CustomCondition(BaseCondition):
     :param callable_: callable to call upon asking whether this condition is valid. This
         should be relatively cheap to compute.
     """
-    __slots__ = ('callable',)
+    __slots__ = 'callable',
 
     def __init__(self, callable_: NoArgCallable[bool]):
         self.callable = callable_
diff --git a/tests/test_instrumentation/test_memory.py b/tests/test_instrumentation/test_memory.py
index 6254539d..c072e8ce 100644
--- a/tests/test_instrumentation/test_memory.py
+++ b/tests/test_instrumentation/test_memory.py
@@ -22,7 +22,7 @@ class OnDemandCondition(CustomCondition):
 
 
 class TestMemory(unittest.TestCase):
-    @unittest.skipIf(sys.platform == 'PyPy', 'This will not work on PyPy')
+    @unittest.skipIf(platform.python_implementation(), 'This will not work on PyPy')
     def test_get_size_dict(self):
         a = {'aba': 'aba'}
 
-- 
GitLab