mirror of
https://github.com/home-assistant/core.git
synced 2025-11-08 18:39:30 +00:00
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:
committed by
Fabian Affolter
parent
2aee366a1f
commit
d88ca0f5cb
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user