def test_compile_file_pathlike_ddir(self):
    self.assertFalse(os.path.isfile(self.bc_path))
    self.assertTrue(compileall.compile_file(pathlib.Path(self.source_path), ddir=pathlib.Path('ddir_path'), quiet=2))
    self.assertTrue(os.path.isfile(self.bc_path))
def test_compile_file_pathlike_ddir(self):
    self.assertFalse(os.path.isfile(self.bc_path))
    self.assertTrue(compileall.compile_file(pathlib.Path(self.source_path), ddir=pathlib.Path('ddir_path'), quiet=2))
    self.assertTrue(os.path.isfile(self.bc_path))