Closed michel-slm closed 1 year ago
test_options has an assertion that tests whether setting a local value modifies the global value, but tests it against a hardcoded constant.
test_options
This constant changed in https://github.com/neovim/neovim/commit/fcfe535e9877cfdc824dc78f2d19e590400d34cd
and https://github.com/neovim/pynvim/commit/82a2e14b96fbffa30caeefec6e86b668c96662eb fixes it by using the new constant instead, but this causes tests to fail against even the latest released version of neovim.
To make this version-agnostic, save the old global value, and assert that the new value is equal after setting the local value.
test_options
has an assertion that tests whether setting a local value modifies the global value, but tests it against a hardcoded constant.This constant changed in https://github.com/neovim/neovim/commit/fcfe535e9877cfdc824dc78f2d19e590400d34cd
and https://github.com/neovim/pynvim/commit/82a2e14b96fbffa30caeefec6e86b668c96662eb fixes it by using the new constant instead, but this causes tests to fail against even the latest released version of neovim.
To make this version-agnostic, save the old global value, and assert that the new value is equal after setting the local value.