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

Catch deprecation warning thrown by QtScript import in testsuite #965

Merged
merged 1 commit into from
Jul 7, 2021

Conversation

rahulporuri
Copy link
Contributor

@rahulporuri rahulporuri commented Jul 2, 2021

pyface.qt.QtScript is expected to throw a deprecation warning on PyQt5/PySide2. We refactored the existing test to create a new test that checks for the deprecation warning while also swallowing the deprecation warning thereby making the test output cleaner.

fixes #582 (the last open item)

pyface.qt.QtScript is expected to throw a deprecation warning on
PyQt5/PySide2, which the new test checks, while also swallowing the
deprecation warning and making the test output cleaner.

	modified:   pyface/ui/qt4/tests/test_qt_imports.py
Copy link
Contributor

@aaronayres35 aaronayres35 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM
I ran the test suite and I no longer see the Deprecation warning.
I assume the long term plan will be to drop the pyface.qt.QtScript module eventually when we fully stop supporting pyqt4?

@rahulporuri
Copy link
Contributor Author

I assume the long term plan will be to drop the pyface.qt.QtScript module eventually when we fully stop supporting pyqt4?

I think so. We'll cross that bridge when we finally start removing support for PyQt4 from the codebase.

@rahulporuri rahulporuri merged commit 393a6cc into master Jul 7, 2021
@rahulporuri rahulporuri deleted the fix/QtScript-deprecation-warning branch July 7, 2021 12:26
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 this pull request may close these issues.

Fix warnings in test suite
2 participants