Skip to content

Commit ed62d17

Browse files
committed
Use unittest to get assertRaisesRegex
1 parent 8b63525 commit ed62d17

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pandas/tests/io/parser/test_parsers.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
# -*- coding: utf-8 -*-
22

33
import os
4-
54
import tempfile
5+
import unittest
6+
67
import pandas.util.testing as tm
78

89
from pandas import read_csv, read_table
@@ -102,7 +103,7 @@ def read_table(self, *args, **kwds):
102103
return read_table(*args, **kwds)
103104

104105

105-
class TestParameterValidation(object):
106+
class TestParameterValidation(unittest.TestCase):
106107
def test_unknown_engine(self):
107108
with tempfile.NamedTemporaryFile() as fp:
108109
df = tm.makeDataFrame()

0 commit comments

Comments
 (0)