summaryrefslogtreecommitdiff
path: root/lib/spack/spack/cmd/unit_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/spack/spack/cmd/unit_test.py')
-rw-r--r--lib/spack/spack/cmd/unit_test.py11
1 files changed, 5 insertions, 6 deletions
diff --git a/lib/spack/spack/cmd/unit_test.py b/lib/spack/spack/cmd/unit_test.py
index 615f72bd8f..4963ad14c6 100644
--- a/lib/spack/spack/cmd/unit_test.py
+++ b/lib/spack/spack/cmd/unit_test.py
@@ -209,12 +209,11 @@ def unit_test(parser, args, unknown_args):
# mock configuration used by unit tests
# Note: skip on windows here because for the moment,
# clingo is wholly unsupported from bootstrap
- if sys.platform != "win32":
- with spack.bootstrap.ensure_bootstrap_configuration():
- spack.bootstrap.ensure_core_dependencies()
- if pytest is None:
- spack.bootstrap.ensure_environment_dependencies()
- import pytest
+ with spack.bootstrap.ensure_bootstrap_configuration():
+ spack.bootstrap.ensure_core_dependencies()
+ if pytest is None:
+ spack.bootstrap.ensure_environment_dependencies()
+ import pytest
if args.pytest_help:
# make the pytest.main help output more accurate