ruff linting fixes (#343)

* ruff linting fixes

* move imports back down to where they're re-exported
This commit is contained in:
Gretchen Leigh Miller 2025-03-07 16:03:35 -08:00 committed by GitHub
parent 6f011cc6c8
commit f64db214d4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
18 changed files with 155 additions and 190 deletions

View file

@ -110,7 +110,7 @@ def test_httpd(httpd):
of the same url return the same payload, proving it can be used to test
deduplication.
"""
payload1 = content2 = None
payload1 = None
url = "http://localhost:%s/site1/file1.txt" % httpd.server_port
with urllib.request.urlopen(url) as response:
assert response.status == 200
@ -175,7 +175,6 @@ def test_420(httpd):
def test_js_dialogs(httpd):
chrome_exe = brozzler.suggest_default_chrome_exe()
url = "http://localhost:%s/site4/alert.html" % httpd.server_port
with brozzler.Browser(chrome_exe=chrome_exe) as browser:
# before commit d2ed6b97a24 these would hang and eventually raise
# brozzler.browser.BrowsingTimeout, which would cause this test to fail