diff --git a/monai/bundle/scripts.py b/monai/bundle/scripts.py index b625578049..4b3e587ffe 100644 --- a/monai/bundle/scripts.py +++ b/monai/bundle/scripts.py @@ -182,7 +182,7 @@ def _get_latest_bundle_version(source: str, name: str, repo: str): return None elif source == "github": repo_owner, repo_name, tag_name = repo.split("/") - return get_bundle_versions(name, repo=os.path.join(repo_owner, repo_name), tag=tag_name)["latest_version"] + return get_bundle_versions(name, repo=f"{repo_owner}/{repo_name}", tag=tag_name)["latest_version"] else: raise ValueError(f"To get the latest bundle version, source should be 'github' or 'ngc', got {source}.") diff --git a/tests/test_bundle_download.py b/tests/test_bundle_download.py index 09cd0128f9..12f15d3b41 100644 --- a/tests/test_bundle_download.py +++ b/tests/test_bundle_download.py @@ -26,7 +26,6 @@ command_line_tests, skip_if_downloading_fails, skip_if_quick, - skip_if_windows, ) TEST_CASE_1 = ["test_bundle", None] @@ -58,7 +57,6 @@ ] -@skip_if_windows class TestDownload(unittest.TestCase): @parameterized.expand([TEST_CASE_1, TEST_CASE_2]) @skip_if_quick