scikit-learn/sklearn/externals/joblib/test/test_format_stack.py

23 lines
447 B
Python
Raw Normal View History

"""
2011-09-07 05:12:26 +08:00
Unit tests for the stack formatting utilities
"""
2011-09-07 05:12:26 +08:00
# Author: Gael Varoquaux <gael dot varoquaux at normalesup dot org>
# Copyright (c) 2010 Gael Varoquaux
# License: BSD Style, 3 clauses.
import nose
from ..format_stack import safe_repr
###############################################################################
class Vicious(object):
def __repr__(self):
raise ValueError
def test_safe_repr():
safe_repr(Vicious())