'Raise TypeError when PickleReader reads a pickle
file without a table (and it suppose to be there).
GH-2232'

def test_open_bad_pickle(self):

    reader = PickleReader('')
    with unittest.mock.patch('pickle.load', return_value=None):
        self.assertRaises(TypeError, reader.read, 'foo')
