From 823778d9f6e378884d0f24e07660015f98ac03fd Mon Sep 17 00:00:00 2001 From: Kai Muehlbauer Date: Tue, 9 Nov 2021 14:58:51 +0100 Subject: [PATCH] WIP: remove stale code, add whats-new.rst entry --- doc/whats-new.rst | 6 ++++++ xarray/tests/test_plugins.py | 1 - 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/doc/whats-new.rst b/doc/whats-new.rst index f499cbe3d21..b66c99d0bcb 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -36,6 +36,8 @@ Bug fixes ~~~~~~~~~ - Fix plot.line crash for data of shape ``(1, N)`` in _title_for_slice on format_item (:pull:`5948`). By `Sebastian Weigand `_. +- Fix a regression in the removal of duplicate backend entrypoints (:issue:`5944`, :pull:`5959`) + By `Kai Mühlbauer `_. Documentation ~~~~~~~~~~~~~ @@ -49,6 +51,10 @@ Documentation Internal Changes ~~~~~~~~~~~~~~~~ +- Use ``importlib`` to replace functionality of ``pkg_resources`` in + backend plugins tests. (:pull:`5959`). + By `Kai Mühlbauer `_. + .. _whats-new.0.20.1: diff --git a/xarray/tests/test_plugins.py b/xarray/tests/test_plugins.py index 6fe865a91e4..086beba97f8 100644 --- a/xarray/tests/test_plugins.py +++ b/xarray/tests/test_plugins.py @@ -49,7 +49,6 @@ def dummy_duplicated_entrypoints(): @pytest.mark.filterwarnings("ignore:Found") def test_remove_duplicates(dummy_duplicated_entrypoints) -> None: - entrypoints = plugins.remove_duplicates(dummy_duplicated_entrypoints) with pytest.warns(RuntimeWarning): entrypoints = plugins.remove_duplicates(dummy_duplicated_entrypoints) assert len(entrypoints) == 2