[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [bridgedb/master] Decrease the noisyness of bridgedb.test.fileCheckDecorator().
commit 685f125c8f1d122a092225dab56570cf688a2058
Author: Isis Lovecruft <isis@xxxxxxxxxxxxxx>
Date: Fri Dec 20 06:10:19 2013 +0000
Decrease the noisyness of bridgedb.test.fileCheckDecorator().
---
lib/bridgedb/test/util.py | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/lib/bridgedb/test/util.py b/lib/bridgedb/test/util.py
index 65abd28..a09c0d1 100644
--- a/lib/bridgedb/test/util.py
+++ b/lib/bridgedb/test/util.py
@@ -47,15 +47,13 @@ def fileCheckDecorator(func):
"""
@wraps(func)
def wrapper(self, src, dst, description):
- print("Copying %s:\n %r\n\t\tâ?? â?? â??\n %r\n"
- % (str(description), src, dst))
self.assertTrue(os.path.isfile(src),
"Couldn't find original %s file: %r"
% (str(description), src))
func(self, src, dst, description)
self.assertTrue(os.path.isfile(dst),
- "Couldn't find new %s file: %r"
- % (str(description), dst))
+ "Couldn't find new %s file: %r. Original: %r"
+ % (str(description), dst, src))
return wrapper
if __name__ == "__main__":
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits