Skip to content
Snippets Groups Projects
Commit f439ea95 authored by Piotr Maślanka's avatar Piotr Maślanka
Browse files

fix unit tests

parent b0002d18
No related branches found
No related tags found
No related merge requests found
......@@ -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,
......
......@@ -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_
......
......@@ -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'}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment