Lint exclusions (#28655)
* Remove malformed pylint disable markers * Remove some unused imports * Remove some unneeded lint exclusions * Remove more unneeded lint exclusions * Add specific codes to all noqa's
This commit is contained in:
parent
2aee366a1f
commit
d88ca0f5cb
73 changed files with 113 additions and 142 deletions
|
@ -165,7 +165,7 @@ class RunThreadsafeTests(TestCase):
|
|||
|
||||
def test_run_callback_threadsafe_with_invalid(self):
|
||||
"""Test callback submission from thread to event loop on invalid."""
|
||||
callback = lambda: self.target_callback(invalid=True) # noqa
|
||||
callback = lambda: self.target_callback(invalid=True) # noqa: E731
|
||||
future = self.loop.run_in_executor(None, callback)
|
||||
with self.assertRaises(ValueError) as exc_context:
|
||||
self.loop.run_until_complete(future)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue