From a5903b042011eb8ac22526af2ea82906d38b9edb Mon Sep 17 00:00:00 2001 From: Maximilien Rigaut Date: Mon, 28 Aug 2017 17:27:17 +0200 Subject: [PATCH] Updated for test without blessings, should also update minitest --- test.py | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/test.py b/test.py index 9cdbfb2..d7061a0 100644 --- a/test.py +++ b/test.py @@ -5,9 +5,26 @@ import sys,os try: from blessings import Terminal except: - print ("You need to have blessings installed to run the test") - print ("A blessingless version is being worked on") - sys.exit() + print ("Usage of blessings is recomended to run the test") + class Nope(object): + def __init__(self,*args,**kwargs): + pass + def __getattribute__(self,attr): + return Nope() + def __str__(self): + return "" + def __call__(self,*args,**kargs): + return "".join(args) + def __repr__(self): + return "" + + class T(object): + def __init__(self,*args,**kwargs): + pass + def __getattribute__(self,attr): + return Nope() + Terminal=T + #sys.exit() try: from minitest import minitest