Skip to content

Commit

Permalink
TST: unit test to reproduce #2599 on some platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
wesm committed Jan 5, 2013
1 parent ab62d91 commit 02b57a8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pandas/io/tests/test_parsers.py
Expand Up @@ -1511,6 +1511,15 @@ def test_integer_overflow_bug(self):
result = self.read_csv(StringIO(data), header=None, sep='\s+')
self.assertTrue(result[0].dtype == np.float64)

def test_int64_min_issues(self):
# #2599
data = 'A,B\n0,0\n0,'

result = self.read_csv(StringIO(data))
expected = DataFrame({'A': [0, 0], 'B': [0, np.nan]})

tm.assert_frame_equal(result, expected)


class TestPythonParser(ParserTests, unittest.TestCase):

Expand Down

0 comments on commit 02b57a8

Please sign in to comment.