diff options
author | Jared Crapo <jared@kotfu.net> | 2017-08-22 11:12:14 -0600 |
---|---|---|
committer | Jared Crapo <jared@kotfu.net> | 2017-08-22 11:12:14 -0600 |
commit | deeeeab563854bea6a616a6746ee47915f9fd641 (patch) | |
tree | ad10d4d8084344df7ad966b5f7fb156251d9d2bc /cmd2.py | |
parent | 73399623f8c1929a080c6dfd1fb62af1bd6551b9 (diff) | |
download | cmd2-git-deeeeab563854bea6a616a6746ee47915f9fd641.tar.gz |
modernize formatting
Diffstat (limited to 'cmd2.py')
-rwxr-xr-x | cmd2.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -2292,8 +2292,8 @@ class Cmd2TestCase(unittest.TestCase): result = self.cmdapp.stdout.read() # Read the expected result from transcript if strip_ansi(line).startswith(self.cmdapp.visible_prompt): - message = '\nFile %s, line %d\nCommand was:\n%r\nExpected: (nothing)\nGot:\n%r\n' % \ - (fname, line_num, command, result) + message = '\nFile {}, line {}\nCommand was:\n{}\nExpected: (nothing)\nGot:\n{}\n'.format( + fname, line_num, command, result) self.assert_(not (result.strip()), message) continue expected = [] |