Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a083a0f

Browse files
committed
Fix test (do not print out a new line)
1 parent c7a4faa commit a083a0f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/test_magic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1436,7 +1436,7 @@ def print_numbers():
14361436
def test_script_streams_multibyte_unicode(capsys):
14371437
ip = get_ipython()
14381438
# € in UTF-8 is encoded using 3 bytes
1439-
code = "print('€' * 1000)"
1439+
code = "print('€' * 1000, end='')"
14401440
ip.run_cell_magic("script", f"{sys.executable}", code)
14411441

14421442
captured = capsys.readouterr()

0 commit comments

Comments
 (0)