Skip to content

Commit 4408f9d

Browse files
prettier errors with multiline string assert
1 parent 0662921 commit 4408f9d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bpython/test/test_interpreter.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def append_to_a(message):
2929
bold(magenta('1')) + '\n 1.1.1.1\n ^\n' + \
3030
bold(red('SyntaxError')) + ': ' + cyan('invalid syntax') + '\n'
3131

32-
self.assertEquals(str(plain('').join(a)), str(expected))
32+
self.assertMultiLineEqual(str(plain('').join(a)), str(expected))
3333
self.assertEquals(plain('').join(a), expected)
3434

3535
def test_traceback(self):
@@ -54,7 +54,7 @@ def g():
5454
cyan('<module>') + '\n' + bold(red('NameError')) + ': ' + \
5555
cyan("name 'g' is not defined") + '\n'
5656

57-
self.assertEquals(str(plain('').join(a)), str(expected))
57+
self.assertMultiLineEqual(str(plain('').join(a)), str(expected))
5858
self.assertEquals(plain('').join(a), expected)
5959

6060
@unittest.skipIf(py3, "runsource() accepts only unicode in Python 3")

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy