Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test failures on OpenBSD #416

Open
vext01 opened this issue Nov 18, 2019 · 1 comment
Open

Test failures on OpenBSD #416

vext01 opened this issue Nov 18, 2019 · 1 comment

Comments

@vext01
Copy link

vext01 commented Nov 18, 2019

On 0.4.0, with Python-3.7.5 and neovim-0.4.3, I've got:

=================================== FAILURES ===================================
__________________________________ test_repr ___________________________________

vim = <pynvim.api.nvim.Nvim object at 0xee53c6e5c10>

    def test_repr(vim):
>       assert repr(vim.current.buffer) == "<Buffer(handle=1)>"
E       AssertionError: assert '<Buffer(handle=2)>' == '<Buffer(handle=1)>'
E         - <Buffer(handle=2)>
E         ?                ^
E         + <Buffer(handle=1)>
E         ?                ^

test/test_buffer.py:10: AssertionError
__________________________________ test_repr ___________________________________

vim = <pynvim.api.nvim.Nvim object at 0xee506337ad0>

    def test_repr(vim):
>       assert repr(vim.current.tabpage) == "<Tabpage(handle=1)>"
E       AssertionError: assert '<Tabpage(handle=2)>' == '<Tabpage(handle=1)>'
E         - <Tabpage(handle=2)>
E         ?                 ^
E         + <Tabpage(handle=1)>
E         ?                 ^

test/test_tabpage.py:48: AssertionError
__________________________________ test_repr ___________________________________

vim = <pynvim.api.nvim.Nvim object at 0xee5f5135110>

    def test_repr(vim):
>       assert repr(vim.current.window) == "<Window(handle=1000)>"
E       AssertionError: assert '<Window(handle=1001)>' == '<Window(handle=1000)>'
E         - <Window(handle=1001)>
E         ?                   ^
E         + <Window(handle=1000)>
E         ?                   ^

test/test_window.py:124: AssertionError

However, I don't seem to get this on master when running py.test out of the source dir, yet they are the same commit.

I'm confused. Any ideas?

@vext01
Copy link
Author

vext01 commented Aug 10, 2020

Similar issue on pynvim-0.4.1 and neovim-0.4.4:

===>  Regression tests for py3-neovim-0.4.1
cd /usr/local/pobj/py-neovim-0.4.1-python3/pynvim-0.4.1 && env HOME=/usr/local/pobj/py-neovim-0.4.1-python3  /usr/local/bin/py.test-3
============================= test session starts ==============================
platform openbsd6 -- Python 3.8.5, pytest-4.4.0, py-1.8.0, pluggy-0.11.0
rootdir: /usr/local/pobj/py-neovim-0.4.1-python3/pynvim-0.4.1, inifile: setup.cfg, testpaths: test
collected 68 items

test/test_buffer.py F................                                    [ 25%]
test/test_client_rpc.py ....                                             [ 30%]
test/test_concurrency.py ..                                              [ 33%]
test/test_decorators.py .                                                [ 35%]
test/test_events.py ....                                                 [ 41%]
test/test_host.py ..                                                     [ 44%]
test/test_logging.py .                                                   [ 45%]
test/test_tabpage.py ....F                                               [ 52%]
test/test_vim.py ....................                                    [ 82%]
test/test_window.py ...........F                                         [100%]

=================================== FAILURES ===================================
__________________________________ test_repr ___________________________________

vim = <pynvim.api.nvim.Nvim object at 0x96d803b24f0>

    def test_repr(vim):
>       assert repr(vim.current.buffer) == "<Buffer(handle=1)>"
E       AssertionError: assert '<Buffer(handle=2)>' == '<Buffer(handle=1)>'
E         - <Buffer(handle=2)>
E         ?                ^
E         + <Buffer(handle=1)>
E         ?                ^

test/test_buffer.py:10: AssertionError
__________________________________ test_repr ___________________________________

vim = <pynvim.api.nvim.Nvim object at 0x96d3171f610>

    def test_repr(vim):
>       assert repr(vim.current.tabpage) == "<Tabpage(handle=1)>"
E       AssertionError: assert '<Tabpage(handle=2)>' == '<Tabpage(handle=1)>'
E         - <Tabpage(handle=2)>
E         ?                 ^
E         + <Tabpage(handle=1)>
E         ?                 ^

test/test_tabpage.py:48: AssertionError
__________________________________ test_repr ___________________________________

vim = <pynvim.api.nvim.Nvim object at 0x96cbdcba460>

    def test_repr(vim):
>       assert repr(vim.current.window) == "<Window(handle=1000)>"
E       AssertionError: assert '<Window(handle=1001)>' == '<Window(handle=1000)>'
E         - <Window(handle=1001)>
E         ?                   ^
E         + <Window(handle=1000)>
E         ?                   ^

test/test_window.py:124: AssertionError
===================== 3 failed, 65 passed in 4.83 seconds ======================
*** Error 1 in . (Makefile:32 'do-test')
*** Error 2 in . (/usr/ports/infrastructure/mk/bsd.port.mk:2954 '/usr/local/pobj/py-neovim-0.4.1-python3/.test_done': @cd /usr/ports/editors...)
*** Error 2 in /usr/ports/editors/py-neovim (/usr/ports/infrastructure/mk/bsd.port.mk:2584 'test': @lock=py3-neovim-0.4.1;  export _LOCKS_HE...)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants