Skip to content

Commit

Permalink
Use unittest to get assertRaisesRegex
Browse files Browse the repository at this point in the history
  • Loading branch information
jtratner committed May 26, 2017
1 parent 8b63525 commit ed62d17
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pandas/tests/io/parser/test_parsers.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# -*- coding: utf-8 -*-

import os

import tempfile
import unittest

import pandas.util.testing as tm

from pandas import read_csv, read_table
Expand Down Expand Up @@ -102,7 +103,7 @@ def read_table(self, *args, **kwds):
return read_table(*args, **kwds)


class TestParameterValidation(object):
class TestParameterValidation(unittest.TestCase):
def test_unknown_engine(self):
with tempfile.NamedTemporaryFile() as fp:
df = tm.makeDataFrame()
Expand Down

0 comments on commit ed62d17

Please sign in to comment.