diff --git a/pyproject.toml b/pyproject.toml index 429d63c8de8367bfe5f60bd1fae7c9f4bb9cc40d..0a3cae3901745cc93909a81b1fbf474e47f4952f 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 7ccb0a74dde86930d012efcf69c10cf3ae9ea2bf..18d94b972c883892f0653d8f01f5a749e5c12b65 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 6254539dd2131c3038b58a21d4789df27c9fee5b..c072e8ce1ab8cd7d53f81d48e02186a75abcaea6 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'}