From 3aacabb928a710b10bff13d0bde49ceaade58f15 Mon Sep 17 00:00:00 2001 From: Jonathon Belotti Date: Wed, 22 Apr 2020 13:16:09 +1000 Subject: [PATCH] refactor construction of tempfile path (#35) --- extract_wheels/lib/namespace_pkgs_test.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/extract_wheels/lib/namespace_pkgs_test.py b/extract_wheels/lib/namespace_pkgs_test.py index 056bb4ddf6..195cdd9c77 100644 --- a/extract_wheels/lib/namespace_pkgs_test.py +++ b/extract_wheels/lib/namespace_pkgs_test.py @@ -133,8 +133,7 @@ def test_empty_case(self): class TestaddPkgutilStyleNamespacePkgInit(unittest.TestCase): def test_missing_directory_is_created(self): - directory = TempDir() - missing_directory = pathlib.Path(directory.root()) / "missing_directory" + missing_directory = pathlib.Path(TempDir().root(), "missing_directory") namespace_pkgs.add_pkgutil_style_namespace_pkg_init(str(missing_directory)) self.assertTrue(missing_directory.is_dir())