aboutsummaryrefslogtreecommitdiffstats
path: root/tests/wpt/web-platform-tests/resources/test/conftest.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/wpt/web-platform-tests/resources/test/conftest.py')
-rw-r--r--tests/wpt/web-platform-tests/resources/test/conftest.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/wpt/web-platform-tests/resources/test/conftest.py b/tests/wpt/web-platform-tests/resources/test/conftest.py
index 047ca1caed2..4688421af23 100644
--- a/tests/wpt/web-platform-tests/resources/test/conftest.py
+++ b/tests/wpt/web-platform-tests/resources/test/conftest.py
@@ -24,8 +24,8 @@ def pytest_configure(config):
config.driver = webdriver.Firefox(firefox_binary=config.getoption("--binary"))
config.server = WPTServer(WPT_ROOT)
config.server.start()
- config.add_cleanup(lambda: config.server.stop())
- config.add_cleanup(lambda: config.driver.quit())
+ config.add_cleanup(config.server.stop)
+ config.add_cleanup(config.driver.quit)
class HTMLItem(pytest.Item, pytest.Collector):
def __init__(self, filename, parent):