diff --git a/pandas/tests/dtypes/test_common.py b/pandas/tests/dtypes/test_common.py index ba510e68f9a21..c32e8590c5675 100644 --- a/pandas/tests/dtypes/test_common.py +++ b/pandas/tests/dtypes/test_common.py @@ -524,3 +524,42 @@ def test_is_complex_dtype(): assert com.is_complex_dtype(np.complex) assert com.is_complex_dtype(np.array([1 + 1j, 5])) + + +@pytest.mark.parametrize('input_param,result', [ + (int, np.dtype(int)), + ('int32', np.dtype('int32')), + (float, np.dtype(float)), + ('float64', np.dtype('float64')), + (np.dtype('float64'), np.dtype('float64')), + pytest.mark.xfail((str, np.dtype('