diff --git a/nbsite/tests/test_cmd.py b/nbsite/tests/test_cmd.py index d7fadd58..568bdf48 100644 --- a/nbsite/tests/test_cmd.py +++ b/nbsite/tests/test_cmd.py @@ -429,7 +429,7 @@ def test_build_deletes_by_default(tmp_project_with_docs_skeleton): build('html', str(project / "builtdocs"), project_root=str(project), examples_assets='') assert not (project / "builtdocs" / ".doctrees").is_dir() assert (project / "builtdocs" / "First_Notebook.html").is_file() - assert len(list((project / "builtdocs").iterdir())) == 9 + assert len(list((project / "builtdocs").iterdir())) == 10 @pytest.mark.slow def test_build_with_clean_dry_run_does_not_delete(tmp_project_with_docs_skeleton): diff --git a/scripts/nbsite_cleandisthtml.py b/scripts/nbsite_cleandisthtml.py index 1d95c476..dae71979 100644 --- a/scripts/nbsite_cleandisthtml.py +++ b/scripts/nbsite_cleandisthtml.py @@ -40,7 +40,7 @@ def IGetFiles(d): except: pass -for file_ in ("objects.inv",): +for file_ in (): f = os.path.join(htmldir,file_) try: if dry_run: