Skip to content

Commit

Permalink
Silence deprecation warnings in Python 3.11
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Howitz committed Sep 28, 2023
1 parent 5053fb6 commit 160b4b4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions pytest.ini
Expand Up @@ -6,3 +6,5 @@ filterwarnings =
ignore::pytest.PytestUnraisableExceptionWarning
ignore:pkg_resources is deprecated as an API:DeprecationWarning
ignore:Deprecated call to `pkg_resources.declare_namespace.*:DeprecationWarning
ignore:'crypt' is deprecated and slated for removal in Python 3.13:DeprecationWarning
ignore:'cgi' is deprecated and slated for removal in Python 3.13:DeprecationWarning
2 changes: 1 addition & 1 deletion src/gocept/selenium/plonetesting/tests/zope2/test_zope2.py
Expand Up @@ -26,4 +26,4 @@ class Zope2Tests(gocept.selenium.tests.isolation.IsolationTests,


def test_suite():
return unittest.makeSuite(Zope2Tests)
return unittest.defaultTestLoader.loadTestsFromTestCase(Zope2Tests)

0 comments on commit 160b4b4

Please sign in to comment.