summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_support.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_support.py')
-rw-r--r--Lib/test/test_support.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_support.py b/Lib/test/test_support.py
index bbae1be..83bde3e 100644
--- a/Lib/test/test_support.py
+++ b/Lib/test/test_support.py
@@ -117,6 +117,10 @@ def verify(condition, reason='test failed'):
if not condition:
raise TestFailed(reason)
+def vereq(a, b):
+ if not (a == b):
+ raise TestFailed, "%r == %r" % (a, b)
+
def sortdict(dict):
"Like repr(dict), but in sorted order."
items = dict.items()