Refactor to avoid shadowing built-in

This commit is contained in:
Hugo van Kemenade 2020-12-27 14:22:41 +02:00
parent 23503a7212
commit 7327b30337

View file

@ -34,11 +34,11 @@ def load_secrets(): # pragma: no cover
class PyLastTestCase:
def assert_startswith(self, str, prefix, start=None, end=None):
assert str.startswith(prefix, start, end)
def assert_startswith(self, s, prefix, start=None, end=None):
assert s.startswith(prefix, start, end)
def assert_endswith(self, str, suffix, start=None, end=None):
assert str.endswith(suffix, start, end)
def assert_endswith(self, s, suffix, start=None, end=None):
assert s.endswith(suffix, start, end)
def _no_xfail_rerun_filter(err, name, test, plugin):