diff options
author | Todd Gamblin <tgamblin@llnl.gov> | 2016-01-17 19:14:49 -0800 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2016-01-17 19:14:49 -0800 |
commit | c1e57e49ae4519702a9f6d6ad83f0f2bebef1492 (patch) | |
tree | f107ee2800b6129845abbb9864789ec8f90c1459 /bin | |
parent | 4bab6f9fdb950b958d439d217f0aec671f336727 (diff) | |
parent | 530e049d4a3f50481e7d55e8b61a9e840f48ad76 (diff) | |
download | spack-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-x | bin/spack | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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 |