run black

This commit is contained in:
David Dalcino
2021-07-01 12:04:37 -07:00
parent 70733c047b
commit 5d5bae28ab
2 changed files with 8 additions and 2 deletions

View File

@@ -700,7 +700,11 @@ class Cli:
try: try:
Version(version_str) Version(version_str)
except ValueError: except ValueError:
self.logger.error("Invalid version: '{}'! Please use the form '5.X.Y'.".format(version_str)) self.logger.error(
"Invalid version: '{}'! Please use the form '5.X.Y'.".format(
version_str
)
)
exit(1) exit(1)

View File

@@ -73,7 +73,9 @@ def test_cli_invalid_version(capsys, invalid_version):
matcher = re.compile( matcher = re.compile(
r"^aqtinstall\(aqt\) v.* on Python 3.*\n" r"^aqtinstall\(aqt\) v.* on Python 3.*\n"
r".*Invalid version: '" + invalid_version + r"'! Please use the form '5\.X\.Y'\.\n.*" r".*Invalid version: '"
+ invalid_version
+ r"'! Please use the form '5\.X\.Y'\.\n.*"
) )
for cmd in "install", "doc", "list": for cmd in "install", "doc", "list":