Skip to content

Commit 980ee39

Browse files
author
y-p
committed
CLN: use assertEqual over assert_ for better exception messages
1 parent 1f3efa1 commit 980ee39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/tseries/tests/test_timeseries.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2507,7 +2507,7 @@ def test_class_ops(self):
25072507
import pytz
25082508

25092509
def compare(x,y):
2510-
self.assert_(int(Timestamp(x).value/1e9) == int(Timestamp(y).value/1e9))
2510+
self.assertEqual(int(Timestamp(x).value/1e9), int(Timestamp(y).value/1e9))
25112511

25122512
compare(Timestamp.now(),datetime.now())
25132513
compare(Timestamp.now('UTC'),datetime.now(pytz.timezone('UTC')))

0 commit comments

Comments
 (0)