Browse files

Fix error with log_warnings coming from pandas Panel tests

Some of the tests using the pandas Panel object were failing. This is because they gave a
warning when used (as Panel is deprecated) and the log_warning function was failing. This is
because the definition of the function has changed between Python 2 and 3, and the previous
definition wasn't valid. This has now been replaced with a definition that works for both 2
and 3, therefore fixing the problem.
  • Loading branch information...
robintw committed Oct 7, 2018
1 parent 8cfd892 commit 30d66611eaf4619e95f4677c888e8ecf931fe920
Showing with 1 addition and 1 deletion.
  1. +1 −1 recipy/
@@ -211,7 +211,7 @@ def log_exception(typ, value, traceback):
sys.__excepthook__(typ, value, traceback)
def log_warning(msg, typ, script, lineno, **kwargs):
def log_warning(msg, typ, script, lineno, file=None, line=None):
if option_set('general', 'debug'):
print('Logging warning "%s"' % str(msg))

0 comments on commit 30d6661

Please sign in to comment.