[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Test failure for IRkernel



Hi,

I intend to upgrade the Debian package for IRkernel.  When running the
test suite I get some errors:


...
test_irkernel_inspects (__main__.IRkernelTests)
Test if object inspection works. ... ok
test_irkernel_plots (__main__.IRkernelTests)
plotting ... FAIL
test_irkernel_plots_only_PNG (__main__.IRkernelTests)
plotting PNG ... FAIL
test_irkernel_plots_only_SVG (__main__.IRkernelTests) ... FAIL
test_irkernel_plots_without_rich_display (__main__.IRkernelTests) ... FAIL
test_is_complete (__main__.IRkernelTests) ... ok
test_kernel_info (__main__.IRkernelTests) ... ok
test_pager (__main__.IRkernelTests) ... skipped ''
test_should_increment_history (__main__.IRkernelTests)
properly increments execution history ... ok
test_should_not_increment_history (__main__.IRkernelTests)
Does not increment history if silent is true or store_history is false ... ok
test_warning_message (__main__.IRkernelTests) ... FAIL

======================================================================
FAIL: test_irkernel_plots (__main__.IRkernelTests)
plotting
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/tmp/autopkgtest.uocGyT/tree/tests/testthat/test_ir.py", line 115, in test_irkernel_plots
    self.assertEqual(len(metadata), 0, metadata.keys())
AssertionError: 2 != 0 : dict_keys(['text/plain', 'image/png'])

======================================================================
FAIL: test_irkernel_plots_only_PNG (__main__.IRkernelTests)
plotting PNG
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/tmp/autopkgtest.uocGyT/tree/tests/testthat/test_ir.py", line 137, in test_irkernel_plots_only_PNG
    self.assertEqual(len(metadata), 0, metadata.keys())
AssertionError: 1 != 0 : dict_keys(['image/png'])

======================================================================
FAIL: test_irkernel_plots_only_SVG (__main__.IRkernelTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/tmp/autopkgtest.uocGyT/tree/tests/testthat/test_ir.py", line 159, in test_irkernel_plots_only_SVG
    self.assertEqual(len(metadata['image/svg+xml']), 1)
AssertionError: 3 != 1

======================================================================
FAIL: test_irkernel_plots_without_rich_display (__main__.IRkernelTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/tmp/autopkgtest.uocGyT/tree/tests/testthat/test_ir.py", line 175, in test_irkernel_plots_without_rich_display
    self.assertEqual(len(data), 2, data.keys())
AssertionError: 1 != 2 : dict_keys(['image/svg+xml'])

======================================================================
FAIL: test_warning_message (__main__.IRkernelTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/tmp/autopkgtest.uocGyT/tree/tests/testthat/test_ir.py", line 234, in test_warning_message
    self.assertEqual(output_msgs[0]['content']['text'], 'Warning message:\n“wmsg”')
AssertionError: 'Warning message:\n“wmsg”\n' != 'Warning message:\n“wmsg”'
  Warning message:
- “wmsg”
?       -
+ “wmsg”

----------------------------------------------------------------------
Ran 26 tests in 10.018s

FAILED (failures=5, skipped=7)


Any idea what might be wrong here?

Kind regards

          Andreas.

-- 
http://fam-tille.de


Reply to: