Skip to content

Commit

Permalink
Fix test errors
Browse files Browse the repository at this point in the history
  • Loading branch information
evhub committed Nov 5, 2023
1 parent c83609f commit 352b942
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion coconut/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ def _coconut_compile(cls, path):

@override
@classmethod
def _looks_like_package(cls, path, _package_name):
def _looks_like_package(cls, path, _package_name=None):
is_coconut_package = any(
os.path.isfile(os.path.join(path, "__init__" + ext))
for ext in code_exts
Expand Down
4 changes: 2 additions & 2 deletions coconut/tests/src/cocotest/agnostic/primary_2.coco
Original file line number Diff line number Diff line change
Expand Up @@ -369,12 +369,12 @@ def primary_test_2() -> bool:
py_xs = py_zip([1, 2], [3, 4])
assert list(xs) == [(1, 3), (2, 4)] == list(xs)
assert list(py_xs) == [(1, 3), (2, 4)]
assert list(py_xs) == []
assert list(py_xs) == [] if sys.version_info >= (3,) else [(1, 3), (2, 4)]
xs = map((+), [1, 2], [3, 4])
py_xs = py_map((+), [1, 2], [3, 4])
assert list(xs) == [4, 6] == list(xs)
assert list(py_xs) == [4, 6]
assert list(py_xs) == []
assert list(py_xs) == [] if sys.version_info >= (3,) else [4, 6]
for xs in [
zip((x for x in range(5)), (x for x in range(10))),
py_zip((x for x in range(5)), (x for x in range(10))),
Expand Down

0 comments on commit 352b942

Please sign in to comment.