diff options
author | Todd Gamblin <tgamblin@llnl.gov> | 2022-07-30 15:19:18 -0700 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2022-07-31 13:29:20 -0700 |
commit | f52f6e99dbf1131886a80112b8c79dfc414afb7c (patch) | |
tree | 05cb7d64b2395922f2f24683da49f472075be12c /var/spack/repos/builtin.mock/packages/build-warnings/package.py | |
parent | 549ba1ed32372c67fc57271cde3797d58b7dec6e (diff) | |
download | spack-f52f6e99dbf1131886a80112b8c79dfc414afb7c.tar.gz spack-f52f6e99dbf1131886a80112b8c79dfc414afb7c.tar.bz2 spack-f52f6e99dbf1131886a80112b8c79dfc414afb7c.tar.xz spack-f52f6e99dbf1131886a80112b8c79dfc414afb7c.zip |
black: reformat entire repository with black
Diffstat (limited to 'var/spack/repos/builtin.mock/packages/build-warnings/package.py')
-rw-r--r-- | var/spack/repos/builtin.mock/packages/build-warnings/package.py | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/var/spack/repos/builtin.mock/packages/build-warnings/package.py b/var/spack/repos/builtin.mock/packages/build-warnings/package.py index 2dbeec5f0a..f2e49574cd 100644 --- a/var/spack/repos/builtin.mock/packages/build-warnings/package.py +++ b/var/spack/repos/builtin.mock/packages/build-warnings/package.py @@ -10,13 +10,14 @@ class BuildWarnings(Package): """This package's install fails but only emits warnings.""" homepage = "http://www.example.com/trivial_install" - url = "http://www.unit-test-should-replace-this-url/trivial_install-1.0.tar.gz" + url = "http://www.unit-test-should-replace-this-url/trivial_install-1.0.tar.gz" - version('1.0', '0123456789abcdef0123456789abcdef') + version("1.0", "0123456789abcdef0123456789abcdef") def install(self, spec, prefix): - with open('configure', 'w') as f: - f.write("""#!/bin/sh\n + with open("configure", "w") as f: + f.write( + """#!/bin/sh\n echo 'checking for gcc... /Users/gamblin2/src/spack/lib/spack/env/clang/clang' echo 'checking whether the C compiler works... yes' echo 'checking for C compiler default output file name... a.out' @@ -24,5 +25,6 @@ echo 'WARNING: ALL CAPITAL WARNING!' echo 'checking for suffix of executables...' echo 'foo.c:89: warning: some weird warning!' exit 1 -""") +""" + ) configure() |