Package: src:metakernel
Version: 0.27.4-1
Severity: serious
Tags: sid bullseye

see
https://ci.debian.net/data/autopkgtest/testing/amd64/m/metakernel/8026145/log.gz

=================================== FAILURES ===================================
____________________________ test_ls_path_complete _____________________________

    def test_ls_path_complete():
        kernel = get_kernel()
        comp = kernel.do_complete('! ls ~/.ipytho', len('! ls ~/.ipytho'))
>       assert comp['matches'] == ['ipython/'], comp
E       AssertionError: {'cursor_end': 14, 'cursor_start': 8, 'matches':
['\x1b[?2004h', '\x1b[?2004l', 'ipython/'], 'status': 'ok'}
E       assert ['\x1b[?2004h...', 'ipython/'] == ['ipython/']
E         At index 0 diff: '\x1b[?2004h' != 'ipython/'
E         Left contains 2 more items, first extra item: '\x1b[?2004l'
E         Use -v to get the full diff

test_metakernel.py:85: AssertionError
_____________________ REPLWrapTestCase.test_existing_spawn _____________________

self = <metakernel.tests.test_replwrap.REPLWrapTestCase
testMethod=test_existing_spawn>

    def test_existing_spawn(self):
        child = pexpect.spawnu("bash", timeout=5, echo=False)
        repl = replwrap.REPLWrapper(child, re.compile('[$#]'),
                                    "PS1='{0}' PS2='{1}' "
                                    "PROMPT_COMMAND='' TERM='dumb'")

        res = repl.run_command("echo $HOME")
>       assert res.startswith('/'), res
E       AssertionError: [?2004l
/home/debci
E         [?2004h
E       assert False
E        +  where False = <built-in method startswith of str object at
0x7fa48bc01580>('/')
E        +    where <built-in method startswith of str object at 0x7fa48bc01580>
= '\x1b[?2004l\r/home/debci\r\n\x1b[?2004h'.startswith

/usr/lib/python3/dist-packages/metakernel/tests/test_replwrap.py:73: 
AssertionError
_______________________ REPLWrapTestCase.test_multiline ________________________

self = <metakernel.tests.test_replwrap.REPLWrapTestCase 
testMethod=test_multiline>

    def test_multiline(self):
        bash = replwrap.bash()
        res = bash.run_command("echo '1 2\n3 4'")
>       self.assertEqual(res.strip().splitlines(), ['1 2', '3 4'])
E       AssertionError: Lists differ: ['\x1b[?2004l', '\x1b[?2004h\x1b[?2004l',
'1 2', '3 4', '\x1b[?2004h'] != ['1 2', '3 4']
E
E       First differing element 0:
E       '\x1b[?2004l'
E       '1 2'
E
E       First list contains 3 additional elements.
E       First extra element 2:
E       '1 2'
E
E       - ['\x1b[?2004l', '\x1b[?2004h\x1b[?2004l', '1 2', '3 4', '\x1b[?2004h']
E       + ['1 2', '3 4']

/usr/lib/python3/dist-packages/metakernel/tests/test_replwrap.py:52: 
AssertionError
=============================== warnings summary ===============================
/usr/lib/python3/dist-packages/metakernel/magics/tests/test_latex_magic.py:8
  /usr/lib/python3/dist-packages/metakernel/magics/tests/test_latex_magic.py:8:
DeprecationWarning: invalid escape sequence \d
    kernel.do_execute("%latex x_1 = \dfrace{a}{b}")

/usr/lib/python3/dist-packages/metakernel/magics/tests/test_latex_magic.py:14
  /usr/lib/python3/dist-packages/metakernel/magics/tests/test_latex_magic.py:14:
DeprecationWarning: invalid escape sequence \d
    kernel.do_execute("""%%latex

/usr/lib/python3/dist-packages/metakernel/tests/test_parser.py:74
  /usr/lib/python3/dist-packages/metakernel/tests/test_parser.py:74:
DeprecationWarning: invalid escape sequence \
    assert "Test\ Dir/" in info['path_matches'], info['path_matches']

/usr/lib/python3/dist-packages/metakernel/tests/test_parser.py:104
  /usr/lib/python3/dist-packages/metakernel/tests/test_parser.py:104:
DeprecationWarning: invalid escape sequence \
    assert "Test\ Dir/" in info['path_matches'], info['path_matches']

/usr/lib/python3/dist-packages/metakernel/tests/test_parser.py:116
  /usr/lib/python3/dist-packages/metakernel/tests/test_parser.py:116:
DeprecationWarning: invalid escape sequence \
    assert 'Test\ Dir/' in info['path_matches'], info

/usr/lib/python3/dist-packages/_pytest/cacheprovider.py:127
  /usr/lib/python3/dist-packages/_pytest/cacheprovider.py:127:
PytestCacheWarning: could not create cache path
/usr/lib/python3/dist-packages/metakernel/.pytest_cache/v/cache/stepwise
    self.warn("could not create cache path {path}", path=path)

/usr/lib/python3/dist-packages/_pytest/cacheprovider.py:127
  /usr/lib/python3/dist-packages/_pytest/cacheprovider.py:127:
PytestCacheWarning: could not create cache path
/usr/lib/python3/dist-packages/metakernel/.pytest_cache/v/cache/nodeids
    self.warn("could not create cache path {path}", path=path)

/usr/lib/python3/dist-packages/_pytest/cacheprovider.py:127
  /usr/lib/python3/dist-packages/_pytest/cacheprovider.py:127:
PytestCacheWarning: could not create cache path
/usr/lib/python3/dist-packages/metakernel/.pytest_cache/v/cache/lastfailed
    self.warn("could not create cache path {path}", path=path)

-- Docs: https://docs.pytest.org/en/latest/warnings.html
=============== 3 failed, 78 passed, 8 warnings in 39.85 seconds ===============

Reply via email to