Skip to content

Commit

Permalink
Merge pull request #337 from ral-facilities/fix-nox-test-session-on-w…
Browse files Browse the repository at this point in the history
…indows-#307

Fix failing Nox tests session on Windows
  • Loading branch information
VKTB authored Feb 21, 2022
2 parents c8d7939 + 3416127 commit 8b613da
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,9 @@ def tests(session):
# Currently, only a pre-release exists for Poetry 1.2. Testing on the pre-release
# 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")
session.run("pip", "uninstall", "-y", "setuptools")
# 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 8b613da

Please sign in to comment.