diff --git a/tests/conftest.py b/tests/conftest.py index 80ae8bf28aa..e0a81957b01 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -91,7 +91,7 @@ def _make_notebook_app(**kwargs): ) # Copy the schema files. - test_data = str(files("jupyterlab_server.test_data").joinpath("")) + test_data = str(files("jupyterlab_server.test_data")._paths[0]) src = pathlib.PurePath(test_data, "schemas", "@jupyterlab") dst = pathlib.PurePath(str(schemas_dir), "@jupyterlab") if os.path.exists(dst):