Repository: facebookresearch/hydra (language: python)

Issue:
[Bug] Fix failing tests
Several tests are broken on main


Discussion / hints:

Fix patch:
diff --git a/examples/tutorials/basic/running_your_hydra_app/3_working_directory/my_app.py b/examples/tutorials/basic/running_your_hydra_app/3_working_directory/my_app.py
index 922c84a523..8106e42256 100644
--- a/examples/tutorials/basic/running_your_hydra_app/3_working_directory/my_app.py
+++ b/examples/tutorials/basic/running_your_hydra_app/3_working_directory/my_app.py
@@ -9,7 +9,9 @@
 @hydra.main(version_base=None)
 def my_app(_cfg: DictConfig) -> None:
     print(f"Working directory : {os.getcwd()}")
-    print(f"Output directory  : {hydra.core.hydra_config.HydraConfig.get().runtime.output_dir}")
+    print(
+        f"Output directory  : {hydra.core.hydra_config.HydraConfig.get().runtime.output_dir}"
+    )
 
 
 if __name__ == "__main__":


Test patch:
diff --git a/tests/test_examples/test_tutorials_basic.py b/tests/test_examples/test_tutorials_basic.py
index 941e3f9fd1..05e2bf047a 100644
--- a/tests/test_examples/test_tutorials_basic.py
+++ b/tests/test_examples/test_tutorials_basic.py
@@ -53,7 +53,8 @@ def test_tutorial_working_directory(tmpdir: Path) -> None:
         "hydra.job.chdir=True",
     ]
     result, _err = run_python_script(cmd)
-    assert result == "Working directory : {}".format(tmpdir)
+    working_directory, output_directory = result.split("\n")
+    assert working_directory == f"Working directory : {tmpdir}"
 
 
 def test_tutorial_working_directory_original_cwd(tmpdir: Path) -> None: