Skip to content

Commit

Permalink
test: fix nox tests session on Windows #307
Browse files Browse the repository at this point in the history
  • Loading branch information
VKTB committed Feb 17, 2022
1 parent d1292c1 commit b65cf0e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ def tests(session):
# version didn't fix the `2to3` issue when building Python ICAT, perhaps because
# Python ICAT isn't built on the downgraded version for some reason?
session.run("poetry", "run", "pip", "uninstall", "-y", "setuptools")
session.run("poetry", "run", "pip", "install", "setuptools<58.0.0")
# Not using `poetry run` as it errors on Windows OS when a version with the '<'
# sign is specified for a package
session.run("pip", "install", "setuptools<58.0.0")
session.run("poetry", "install", external=True)
session.run("pytest", *args)

0 comments on commit b65cf0e

Please sign in to comment.