Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests deprication warnings #80

Open
Hellseher opened this issue May 13, 2022 · 0 comments · May be fixed by #82
Open

Tests deprication warnings #80

Hellseher opened this issue May 13, 2022 · 0 comments · May be fixed by #82

Comments

@Hellseher
Copy link

Hi,

During packaging your project for Guix I've noticed pytest deprication warnings:

  • python-pytest version: 6.2.5
guix describe
Generation 279  May 13 2022 15:28:57    (current)
  guix 7f7cc04
    repository URL: https://git.savannah.gnu.org/git/guix.git
    branch: master
    commit: 7f7cc042083a759f9b136761f8f9f95ed87563ed

Warnings

=============================== warnings summary ===============================
ometa/test/test_builder.py::PythonWriterTests::test_markAsTree
 /tmp/guix-build-python-parsley-1.3.drv-0/source/ometa/test/test_builder.py:328: DeprecationWarning: Please use assertTrue instead.
   self.assert_("\n        tree = True\n" in writePython(g, ""))

ometa/test/test_protocol.py::ParserProtocolTestCase::test_connectionEstablishes
 /tmp/guix-build-python-parsley-1.3.drv-0/source/ometa/test/test_protocol.py:93: DeprecationWarning: Please use assertTrue instead.
   self.assert_(self.protocol.receiver.connected)

ometa/test/test_protocol.py::ParserProtocolTestCase::test_dataIgnoredAfterDisconnection
 /tmp/guix-build-python-parsley-1.3.drv-0/source/ometa/test/test_protocol.py:190: DeprecationWarning: Please use assertTrue instead.
   self.assert_(not transport.aborted)

ometa/test/test_protocol.py::ParserProtocolTestCase::test_exceptionsRaisedFromReceiver
 /tmp/guix-build-python-parsley-1.3.drv-0/source/ometa/test/test_protocol.py:177: DeprecationWarning: Please use assertNotEqual instead.
   self.failIfEqual(self.protocol.receiver.lossReason, None)

ometa/test/test_protocol.py::ParserProtocolTestCase::test_exceptionsRaisedFromReceiver
 /tmp/guix-build-python-parsley-1.3.drv-0/source/ometa/test/test_protocol.py:180: DeprecationWarning: Please use assertTrue instead.
   self.assert_(transport.aborted)

ometa/test/test_protocol.py::ParserProtocolTestCase::test_parseFailure
 /tmp/guix-build-python-parsley-1.3.drv-0/source/ometa/test/test_protocol.py:164: DeprecationWarning: Please use assertNotEqual instead.
   self.failIfEqual(self.protocol.receiver.lossReason, None)

ometa/test/test_protocol.py::ParserProtocolTestCase::test_parseFailure
 /tmp/guix-build-python-parsley-1.3.drv-0/source/ometa/test/test_protocol.py:167: DeprecationWarning: Please use assertTrue instead.
   self.assert_(transport.aborted)

ometa/test/test_pymeta.py::MakeGrammarTest::test_brokenGrammar
 /tmp/guix-build-python-parsley-1.3.drv-0/source/ometa/test/test_pymeta.py:1141: DeprecationWarning: Please use assertEqual instead.
   self.assertEquals(e.position, 57)

ometa/test/test_pymeta.py::MakeGrammarTest::test_brokenGrammar
 /tmp/guix-build-python-parsley-1.3.drv-0/source/ometa/test/test_pymeta.py:1142: DeprecationWarning: Please use assertEqual instead.
   self.assertEquals(e.error, [("message", "end of input")])

ometa/test/test_runtime.py::RuntimeTests::test_exactlyFail
 /tmp/guix-build-python-parsley-1.3.drv-0/source/ometa/test/test_runtime.py:57: DeprecationWarning: Please use assertEqual instead.
   self.assertEquals(exc.args[1], expected(None, "g"))

ometa/test/test_runtime.py::RuntimeTests::test_exactlyFail
 /tmp/guix-build-python-parsley-1.3.drv-0/source/ometa/test/test_runtime.py:58: DeprecationWarning: Please use assertEqual instead.
   self.assertEquals(exc.args[0], 0)

-- Docs: https://docs.pytest.org/en/stable/warnings.html
================= 307 passed, 8 skipped, 11 warnings in 5.17s ==================
s-t-e-v-e-n-k added a commit to s-t-e-v-e-n-k/parsley that referenced this issue Jan 9, 2024
Python 3.1 and Python 3.2 deprecated a large amount of assertions, and
have finally been removed in Python 3.12. Move to the "new" function
names.

Fixes pyga#80
@s-t-e-v-e-n-k s-t-e-v-e-n-k linked a pull request Jan 9, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant