We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello,
I tried to use ic within doctests (python 3.11.8) : import doctest from icecream import ic
def tester(): """
tester() """ a = ic(5*3) print(f"{a=}")
if name == 'main': doctest.testmod()
doctest will return
�[38;5;247mic�[39m�[38;5;245m|�[39m�[38;5;245m �[39m�[38;5;36m5�[39m�[38;5;245m*�[39m�[38;5;36m3�[39m�[38;5;245m:�[39m�[38;5;245m �[39m�[38;5;36m15�[39m
File "C:/Users/U070420/Downloads/ictest.py", line 6, in main.tester Failed example: tester() Expected nothing Got: a=15
1 items had failures: 1 of 1 in main.tester Test Failed 1 failures.
where the print works as expected, but icecream produces strange output.
Any way around this?
Thank you!
Best regards, Torsten
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hello,
I tried to use ic within doctests (python 3.11.8) :
import doctest
from icecream import ic
def tester():
"""
if name == 'main':
doctest.testmod()
doctest will return
�[38;5;247mic�[39m�[38;5;245m|�[39m�[38;5;245m �[39m�[38;5;36m5�[39m�[38;5;245m*�[39m�[38;5;36m3�[39m�[38;5;245m:�[39m�[38;5;245m �[39m�[38;5;36m15�[39m
File "C:/Users/U070420/Downloads/ictest.py", line 6, in main.tester
Failed example:
tester()
Expected nothing
Got:
a=15
1 items had failures:
1 of 1 in main.tester
Test Failed 1 failures.
where the print works as expected, but icecream produces strange output.
Any way around this?
Thank you!
Best regards,
Torsten
The text was updated successfully, but these errors were encountered: