pyenergyplus / eppy3000

E+ Scripting Language using the epJSON file format
Mozilla Public License 2.0
7 stars 3 forks source link

PytestRemovedIn8Warning in pytest for python3.11 #83

Closed santoshphilip closed 1 year ago

santoshphilip commented 1 year ago

take steps to remove this warning:

tests/test_epMunch.py::TestEPMunch_simple::test_repr
  /Users/santosh/venvs/eppy3000_3_11/lib/python3.11/site-packages/_pytest/fixtures.py:902: PytestRemovedIn8Warning: Support for nose tests is deprecated and will be removed in a future release.
  tests/test_epMunch.py::TestEPMunch_simple::test_repr is using nose-specific method: `setup(self)`
  To remove this warning, rename it to `setup_method(self)`
  See docs: https://docs.pytest.org/en/stable/deprecations.html#support-for-tests-written-for-nose
    fixture_result = next(generator)

tests/test_epMunch.py::TestEPMunch_simple::test_str
  /Users/santosh/venvs/eppy3000_3_11/lib/python3.11/site-packages/_pytest/fixtures.py:902: PytestRemovedIn8Warning: Support for nose tests is deprecated and will be removed in a future release.
  tests/test_epMunch.py::TestEPMunch_simple::test_str is using nose-specific method: `setup(self)`
  To remove this warning, rename it to `setup_method(self)`
  See docs: https://docs.pytest.org/en/stable/deprecations.html#support-for-tests-written-for-nose
    fixture_result = next(generator)

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
santoshphilip commented 1 year ago

fixed with issue #80