Skip to content

Commit c663b20

Browse files
committed
Run the test
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
1 parent 1451c2c commit c663b20

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

bpython/test/test_interpreter.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,15 +70,15 @@ def test_runsource_bytes(self):
7070
self.assertEqual(i.locals['b'], "\xfe")
7171

7272
@unittest.skipUnless(py3, "Only a syntax error in Python 3")
73-
@mock.patch.object(interpreter.Interp, 'showsyntaxerror')
74-
def test_runsource_bytes_over_128_syntax_error(self):
73+
def test_runsource_bytes_over_128_syntax_error_py3(self):
7574
i = interpreter.Interp(encoding='latin-1')
75+
i.showsyntaxerror = mock.Mock(return_value=None)
7676

7777
i.runsource("a = b'\xfe'", encode=True)
78-
i.showsyntaxerror.assert_called_with()
78+
i.showsyntaxerror.assert_called_with(mock.ANY)
7979

8080
@unittest.skipIf(py3, "encode is Python 2 only")
81-
def test_runsource_bytes_over_128_syntax_error(self):
81+
def test_runsource_bytes_over_128_syntax_error_py2(self):
8282
i = interpreter.Interp(encoding='latin-1')
8383

8484
i.runsource("a = b'\xfe'", encode=True)

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