Skip to content

Commit

Permalink
Restore pytest
Browse files Browse the repository at this point in the history
Use pytest instead of nosetest
  • Loading branch information
harisbal committed May 15, 2017
1 parent b0f0440 commit 75dea48
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pandas/tests/reshape/test_merge.py
Original file line number Diff line number Diff line change
Expand Up @@ -1136,14 +1136,14 @@ def test_join_multi_levels(self):

def f():
household.join(portfolio, how='inner')
self.assertRaises(ValueError, f)
pytest.raises(ValueError, f)

portfolio2 = portfolio.copy()
portfolio2.index.set_names(['household_id', 'foo'])

def f():
portfolio2.join(portfolio, how='inner')
self.assertRaises(ValueError, f)
pytest.raises(ValueError, f)

def test_join_multi_levels2(self):

Expand Down Expand Up @@ -1332,7 +1332,7 @@ def test_join_multi_levels3(self):

def f():
matrix.join(distances2, how='left')
self.assertRaises(TypeError, f)
pytest.raises(TypeError, f)

#No-overlapping level names
distances2 = (
Expand All @@ -1348,7 +1348,7 @@ def f():

def f():
matrix.join(distances2, how='left')
self.assertRaises(ValueError, f)
pytest.raises(ValueError, f)

# Empty Level
distances2 = (
Expand Down

0 comments on commit 75dea48

Please sign in to comment.