summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorTodd Gamblin <tgamblin@llnl.gov>2016-01-17 19:14:49 -0800
committerTodd Gamblin <tgamblin@llnl.gov>2016-01-17 19:14:49 -0800
commitc1e57e49ae4519702a9f6d6ad83f0f2bebef1492 (patch)
treef107ee2800b6129845abbb9864789ec8f90c1459 /bin
parent4bab6f9fdb950b958d439d217f0aec671f336727 (diff)
parent530e049d4a3f50481e7d55e8b61a9e840f48ad76 (diff)
downloadspack-c1e57e49ae4519702a9f6d6ad83f0f2bebef1492.tar.gz
spack-c1e57e49ae4519702a9f6d6ad83f0f2bebef1492.tar.bz2
spack-c1e57e49ae4519702a9f6d6ad83f0f2bebef1492.tar.xz
spack-c1e57e49ae4519702a9f6d6ad83f0f2bebef1492.zip
Merge pull request #202 from scheibelp/features/unittest-xml-output-nose
Features/unittest xml output nose
Diffstat (limited to 'bin')
-rwxr-xr-xbin/spack8
1 files changed, 8 insertions, 0 deletions
diff --git a/bin/spack b/bin/spack
index cd46cf6180..55b2708875 100755
--- a/bin/spack
+++ b/bin/spack
@@ -41,6 +41,14 @@ sys.path.insert(0, SPACK_LIB_PATH)
SPACK_EXTERNAL_LIBS = os.path.join(SPACK_LIB_PATH, "external")
sys.path.insert(0, SPACK_EXTERNAL_LIBS)
+import warnings
+# Avoid warnings when nose is installed with the python exe being used to run
+# spack. Note this must be done after Spack's external libs directory is added
+# to sys.path.
+with warnings.catch_warnings():
+ warnings.filterwarnings("ignore", ".*nose was already imported")
+ import nose
+
# Quick and dirty check to clean orphaned .pyc files left over from
# previous revisions. These files were present in earlier versions of
# Spack, were removed, but shadow system modules that Spack still