From 960016379852d90f0df37acaee1f1440fedb5d44 Mon Sep 17 00:00:00 2001 From: Harry Date: Wed, 8 Nov 2023 19:03:07 +0000 Subject: [PATCH] switching to beeprint in small steps experiment --- pytest_icdiff.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pytest_icdiff.py b/pytest_icdiff.py index 959c56c..8862fc7 100644 --- a/pytest_icdiff.py +++ b/pytest_icdiff.py @@ -1,6 +1,6 @@ # pylint: disable=inconsistent-return-statements import shutil -from pprintpp import pformat +import beeprint import icdiff AUTO_COLS = shutil.get_terminal_size().columns @@ -13,6 +13,8 @@ # f.write(' '.join(str(thing) for thing in things)) # f.write('\n') +def pformat(*args, **kwargs) -> str: # temporary wrapper to minimise diff + return str(beeprint.pp(*args, **kwargs, output=False)) def pytest_addoption(parser): parser.addoption(