summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDenis Davydov <davydden@gmail.com>2016-05-11 15:45:57 +0200
committerDenis Davydov <davydden@gmail.com>2016-05-11 16:11:34 +0200
commiteba264fcd0701b2172dc39d2616cb2f90b4d8578 (patch)
treeb05eaff37436178110f87a2d2d027ecc627bafb8 /lib
parent361b6290341e1248b3c5a5c3895b03610cb7ae3f (diff)
downloadspack-eba264fcd0701b2172dc39d2616cb2f90b4d8578.tar.gz
spack-eba264fcd0701b2172dc39d2616cb2f90b4d8578.tar.bz2
spack-eba264fcd0701b2172dc39d2616cb2f90b4d8578.tar.xz
spack-eba264fcd0701b2172dc39d2616cb2f90b4d8578.zip
fix formatting
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/package_test.py16
1 files changed, 9 insertions, 7 deletions
diff --git a/lib/spack/spack/package_test.py b/lib/spack/spack/package_test.py
index 4b021684ee..9c15e3f5d0 100644
--- a/lib/spack/spack/package_test.py
+++ b/lib/spack/spack/package_test.py
@@ -25,7 +25,8 @@
from spack import *
import os
-def compile_c_and_execute(source_file,include_flags, link_flags):
+
+def compile_c_and_execute(source_file, include_flags, link_flags):
"""Compile C @p source_file with @p include_flags and @p link_flags,
run and return the output.
"""
@@ -46,14 +47,15 @@ def compare_output(current_output, blessed_output):
if not (current_output == blessed_output):
print "Produced output does not match expected output."
print "Expected output:"
- print '-'*80
+ print '-' * 80
print blessed_output
- print '-'*80
+ print '-' * 80
print "Produced output:"
- print '-'*80
+ print '-' * 80
print current_output
- print '-'*80
- raise RuntimeError("Ouput check failed. See spack_output.log for details")
+ print '-' * 80
+ raise RuntimeError("Ouput check failed.",
+ "See spack_output.log for details")
def compare_output_file(current_output, blessed_output_file):
@@ -61,4 +63,4 @@ def compare_output_file(current_output, blessed_output_file):
with open(blessed_output_file, 'r') as f:
blessed_output = f.read()
- compare_output(current_output,blessed_output)
+ compare_output(current_output, blessed_output)