Skip to content

Commit 2ffae3a

Browse files
committed
changed datetime fractional second test's assertion to make entire datetime comparison
1 parent 9fc07a7 commit 2ffae3a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pandas/io/tests/test_pytables.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -468,9 +468,10 @@ def test_legacy_read(self):
468468
store.close()
469469

470470
def test_store_datetime_fractional_secs(self):
471-
series = Series([0], [datetime(2012, 1, 2, 3, 4, 5, 123456)])
471+
dt = datetime(2012, 1, 2, 3, 4, 5, 123456)
472+
series = Series([0], [dt])
472473
self.store['a'] = series
473-
self.assertEquals(self.store['a'].index[0].microsecond, 123456)
474+
self.assertEquals(self.store['a'].index[0], dt)
474475

475476
def curpath():
476477
pth, _ = os.path.split(os.path.abspath(__file__))

0 commit comments

Comments
 (0)