Skip to content

Commit f123e50

Browse files
committed
Bug 1978027 - [wdspec] Fix "another_timezone" fixture. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D259422
1 parent 07776c4 commit f123e50

File tree

1 file changed

+3
-4
lines changed
  • testing/web-platform/tests/webdriver/tests/bidi/emulation/set_timezone_override

1 file changed

+3
-4
lines changed

testing/web-platform/tests/webdriver/tests/bidi/emulation/set_timezone_override/conftest.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@ async def default_timezone(get_current_timezone, top_context):
3232
@pytest.fixture
3333
def some_timezone(default_timezone):
3434
"""
35-
Returns some timezone which is not equal to `default_timezone` nor to
36-
`another_timezone`.
35+
Returns some timezone which is not equal to `default_timezone`.
3736
"""
3837
for timezone in TIMEZONES:
3938
if timezone != default_timezone:
@@ -50,11 +49,11 @@ def another_timezone(default_timezone, some_timezone):
5049
`some_timezone`.
5150
"""
5251
for timezone in TIMEZONES:
53-
if timezone != default_timezone and timezone != another_timezone:
52+
if timezone != default_timezone and timezone != some_timezone:
5453
return timezone
5554

5655
raise Exception(
57-
f"Unexpectedly could not find timezone different from the default {default_timezone}")
56+
f"Unexpectedly could not find timezone different from the default {default_timezone} and {some_timezone}")
5857

5958

6059
@pytest_asyncio.fixture

0 commit comments

Comments
 (0)