Skip to content

Commit f79cb4f

Browse files
committed
Ignore bogus warnings
Hypothesis seems to walk all modules in sys.modules, and triggered the following warnings: .tox/py-tests/lib/python3.12/site-packages/hypothesis/internal/conjecture/providers.py:328 /home/hugo/src/github.com/pimutils/khal/.tox/py-tests/lib/python3.12/site-packages/hypothesis/internal/conjecture/providers.py:328: DeprecationWarning: urwid.lcd_display is moved to urwid.display.lcd module_file := getattr(module, "__file__", None) .tox/py-tests/lib/python3.12/site-packages/hypothesis/internal/conjecture/providers.py:328 /home/hugo/src/github.com/pimutils/khal/.tox/py-tests/lib/python3.12/site-packages/hypothesis/internal/conjecture/providers.py:328: DeprecationWarning: urwid.html_fragment is moved to urwid.display.html_fragment module_file := getattr(module, "__file__", None) .tox/py-tests/lib/python3.12/site-packages/hypothesis/internal/conjecture/providers.py:328 /home/hugo/src/github.com/pimutils/khal/.tox/py-tests/lib/python3.12/site-packages/hypothesis/internal/conjecture/providers.py:328: DeprecationWarning: urwid.web_display is moved to urwid.display.web module_file := getattr(module, "__file__", None) .tox/py-tests/lib/python3.12/site-packages/hypothesis/internal/conjecture/providers.py:328 /home/hugo/src/github.com/pimutils/khal/.tox/py-tests/lib/python3.12/site-packages/hypothesis/internal/conjecture/providers.py:328: DeprecationWarning: urwid.monitored_list is moved to urwid.widget.monitored_list module_file := getattr(module, "__file__", None) .tox/py-tests/lib/python3.12/site-packages/hypothesis/internal/conjecture/providers.py:328 /home/hugo/src/github.com/pimutils/khal/.tox/py-tests/lib/python3.12/site-packages/hypothesis/internal/conjecture/providers.py:328: DeprecationWarning: urwid.listbox is moved to urwid.widget.listbox module_file := getattr(module, "__file__", None) .tox/py-tests/lib/python3.12/site-packages/hypothesis/internal/conjecture/providers.py:328 /home/hugo/src/github.com/pimutils/khal/.tox/py-tests/lib/python3.12/site-packages/hypothesis/internal/conjecture/providers.py:328: DeprecationWarning: urwid.treetools is moved to urwid.widget.treetools module_file := getattr(module, "__file__", None) These are not really a problem; ignore them.
1 parent dd82e34 commit f79cb4f

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

pyproject.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,12 @@ repository = "https://github.com/pimutils/khal"
6363
khal = "khal.cli:main_khal"
6464
ikhal = "khal.cli:main_ikhal"
6565

66+
[tool.pytest.ini_options]
67+
filterwarnings = [
68+
# hypothesis triggers warnings while walking modules inside urwid.
69+
"ignore:.*urwid\\.(lcd_display|html_fragment|web_display|monitored_list|listbox|treetools) is moved to.*:DeprecationWarning",
70+
]
71+
6672
[build-system]
6773
requires = ["setuptools>=77", "setuptools_scm>=8"]
6874
build-backend = "setuptools.build_meta"

0 commit comments

Comments
 (0)