Skip to content

Commit 52a7a15

Browse files
committed
Switch assert arguments to display correct value as expected
1 parent bbdff64 commit 52a7a15

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

bpython/test/test_interpreter.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,8 @@ def gfunc():
130130
)
131131

132132
a = i.a
133-
self.assertMultiLineEqual(str(plain("").join(a)), str(expected))
134-
self.assertEqual(plain("").join(a), expected)
133+
self.assertMultiLineEqual(str(expected), str(plain("").join(a)))
134+
self.assertEqual(expected, plain("").join(a))
135135

136136
def test_getsource_works_on_interactively_defined_functions(self):
137137
source = "def foo(x):\n return x + 1\n"

bpython/test/test_repl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ def assert_get_source_error_for_current_function(self, func, msg):
307307
try:
308308
self.repl.get_source_of_current_name()
309309
except repl.SourceNotFound as e:
310-
self.assertEqual(e.args[0], msg)
310+
self.assertEqual(msg, e.args[0])
311311
else:
312312
self.fail("Should have raised SourceNotFound")
313313

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