Skip to content

Commit

Permalink
refactor construction of tempfile path (bazelbuild#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathon Belotti authored Apr 22, 2020
1 parent 9c03622 commit 3aacabb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions extract_wheels/lib/namespace_pkgs_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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())

Expand Down

0 comments on commit 3aacabb

Please sign in to comment.