Skip to content

Commit

Permalink
Fix more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
evhub committed Oct 15, 2023
1 parent 5b51c4c commit c2165d0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion coconut/command/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ def execute_args(self, args, interact=True, original_args=None):
if args.site_install and args.site_uninstall:
raise CoconutException("cannot --site-install and --site-uninstall simultaneously")
if args.incremental and not SUPPORTS_INCREMENTAL:
raise CoconutException("--incremental mode requires cPyparsing (run '{python} -m pip install --upgrade cPyparsing' to fix)".format(python=sys.executable))
raise CoconutException("--incremental mode not supported in current environment (try '{python} -m pip install --upgrade cPyparsing' to fix)".format(python=sys.executable))
for and_args in getattr(args, "and") or []:
if len(and_args) > 2:
raise CoconutException(
Expand Down
1 change: 1 addition & 0 deletions coconut/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -963,6 +963,7 @@ def get_path_env_var(env_var, default):
"numpy": (
("numpy", "py<3;cpy"),
("numpy", "py34;py<39"),
("numpy", "py39"),
("pandas", "py36"),
),
"tests": (
Expand Down
2 changes: 1 addition & 1 deletion coconut/tests/main_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -940,7 +940,7 @@ def test_run_arg(self):
def test_jobs_zero(self):
run(["--jobs", "0"])

if not PYPY:
if not PYPY and PY38:
def test_incremental(self):
run(["--incremental"])
# includes "Error" because exceptions include the whole file
Expand Down

0 comments on commit c2165d0

Please sign in to comment.