/usr/local/lib64/python3.6/site-packages/pandas/tests
NameSizeModeActions
api/-0755rm
arithmetic/-0755rm
arrays/-0755rm
base/-0755rm
computation/-0755rm
config/-0755rm
dtypes/-0755rm
extension/-0755rm
frame/-0755rm
generic/-0755rm
groupby/-0755rm
indexes/-0755rm
indexing/-0755rm
internals/-0755rm
io/-0755rm
plotting/-0755rm
reductions/-0755rm
resample/-0755rm
reshape/-0755rm
scalar/-0755rm
series/-0755rm
tools/-0755rm
tseries/-0755rm
tslibs/-0755rm
util/-0755rm
window/-0755rm
__pycache__/-0755rm
test_aggregation.py27720644editdlrm
test_algos.py825740644editdlrm
test_common.py44470644editdlrm
test_downstream.py51630644editdlrm
test_errors.py16780644editdlrm
test_expressions.py140230644editdlrm
test_join.py92960644editdlrm
test_lib.py79580644editdlrm
test_multilevel.py657260644editdlrm
test_nanops.py378470644editdlrm
test_optional_dependency.py15180644editdlrm
test_register_accessor.py23510644editdlrm
test_sorting.py177860644editdlrm
test_strings.py1337660644editdlrm
test_take.py168750644editdlrm
__init__.py00644editdlrm
Edit: /usr/local/lib64/python3.6/site-packages/pandas/tests/test_errors.py (1678B)
import pytest from pandas.errors import AbstractMethodError import pandas as pd # noqa @pytest.mark.parametrize( "exc", [ "UnsupportedFunctionCall", "UnsortedIndexError", "OutOfBoundsDatetime", "ParserError", "PerformanceWarning", "DtypeWarning", "EmptyDataError", "ParserWarning", "MergeError", "OptionError", "NumbaUtilError", ], ) def test_exception_importable(exc): from pandas import errors err = getattr(errors, exc) assert err is not None # check that we can raise on them msg = "^$" with pytest.raises(err, match=msg): raise err() def test_catch_oob(): from pandas import errors msg = "Out of bounds nanosecond timestamp: 1500-01-01 00:00:00" with pytest.raises(errors.OutOfBoundsDatetime, match=msg): pd.Timestamp("15000101") class Foo: @classmethod def classmethod(cls): raise AbstractMethodError(cls, methodtype="classmethod") @property def property(self): raise AbstractMethodError(self, methodtype="property") def method(self): raise AbstractMethodError(self) def test_AbstractMethodError_classmethod(): xpr = "This classmethod must be defined in the concrete class Foo" with pytest.raises(AbstractMethodError, match=xpr): Foo.classmethod() xpr = "This property must be defined in the concrete class Foo" with pytest.raises(AbstractMethodError, match=xpr): Foo().property xpr = "This method must be defined in the concrete class Foo" with pytest.raises(AbstractMethodError, match=xpr): Foo().method()