Skip to content

Commit bf3bef6

Browse files
bwignally-p
authored and
y-p
committed
CLN: test_plotting, specialize assert_
GH6175: replacing "assert_" with specialized forms of assert
1 parent 1adbca5 commit bf3bef6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/tseries/tests/test_plotting.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def test_nonnumeric_exclude(self):
8181
df = DataFrame({'A': ["x", "y", "z"], 'B': [1,2,3]}, idx)
8282

8383
ax = df.plot() # it works
84-
self.assert_(len(ax.get_lines()) == 1) #B was plotted
84+
self.assertEqual(len(ax.get_lines()), 1) #B was plotted
8585
plt.close(plt.gcf())
8686

8787
self.assertRaises(TypeError, df['A'].plot)
@@ -390,7 +390,7 @@ def test_finder_monthly(self):
390390
ax = ser.plot()
391391
xaxis = ax.get_xaxis()
392392
rs = xaxis.get_majorticklocs()[0]
393-
self.assert_(rs == xp)
393+
self.assertEqual(rs, xp)
394394
vmin, vmax = ax.get_xlim()
395395
ax.set_xlim(vmin + 0.9, vmax)
396396
rs = xaxis.get_majorticklocs()[0]

0 commit comments

Comments
 (0)