Skip to content

Commit 58fda7b

Browse files
Apply ruff/flake8-pie rule PIE810
PIE810 Call `startswith` once with a `tuple`
1 parent b70f6e6 commit 58fda7b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/test_cython.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@ def test_cython_coro_is_coroutine(self):
1313

1414
coro_fmt = _format_coroutine(coro)
1515
self.assertTrue(
16-
coro_fmt.startswith('_test_coroutine_1() done')
17-
or coro_fmt.startswith('_test_coroutine_1() running')
16+
coro_fmt.startswith(
17+
('_test_coroutine_1() done', '_test_coroutine_1() running')
18+
)
1819
)
1920
self.assertEqual(_test_coroutine_1.__qualname__, '_test_coroutine_1')
2021
self.assertEqual(_test_coroutine_1.__name__, '_test_coroutine_1')

0 commit comments

Comments
 (0)