Traceback (most recent call last):


 ".\problem.py", line 11, in <module>

ax.broken_barh([(lo, timedelta(hours=1))], (10, 20))


 "C:\...\lib\site-packages\matplotlib\__init__.py", line 1810, in inner

return func(ax, *args, **kwargs)


 "C:\...\lib\site-packages\matplotlib\axes\_axes.py", line 2528, in broken_barh

xranges = self.convert_xunits(xranges)


 "C:\...\lib\site-packages\matplotlib\artist.py", line 186, in convert_xunits

return ax.xaxis.convert_units(x)


 "C:\...\lib\site-packages\matplotlib\axis.py", line 1530, in convert_units

ret = self.converter.convert(x, self.units, self)


 "C:\...\lib\site-packages\matplotlib\dates.py", line 1801, in convert

return date2num(value)


 "C:\...\lib\site-packages\matplotlib\dates.py", line 428, in date2num

return _to_ordinalf_np_vectorized(d)


 "C:\...\lib\site-packages\numpy\lib\function_base.py", line 1972, in __call__

return self._vectorize_call(func=func, args=vargs)


 "C:\...\lib\site-packages\numpy\lib\function_base.py", line 2048, in _vectorize_call

outputs = ufunc(*inputs)


 "C:\...\lib\site-packages\matplotlib\dates.py", line 229, in _to_ordinalf

base = float(dt.toordinal())
AttributeError: 'datetime.timedelta' object has no attribute 'toordinal'

Traceback (most recent call last):


 "/usr/lib/python3.5/unittest/mock.py", line 1157, in patched

return func(*args, **keywargs)


 "/home/ubuntu/binaryalert/tests/lambda_functions/build_test.py", line 96, in test_build_dispatcher

mock_print.assert_called_once()


 "/usr/lib/python3.5/unittest/mock.py", line 583, in __getattr__

raise AttributeError(name)
AttributeError: assert_called_once
