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

PR: Fix LibraryLocation -> LibraryPath renaming due to deprecation with Qt6 #393

Merged
merged 2 commits into from
Dec 19, 2022
Merged

Conversation

StSav012
Copy link
Contributor

That was a minor omission.

@CAM-Gerlach CAM-Gerlach changed the title Fixed LibraryLocation → LibraryPath renaming Fix LibraryLocation -> LibraryPath renaming Dec 18, 2022
@CAM-Gerlach CAM-Gerlach added this to the v2.3.1 milestone Dec 18, 2022
@StSav012
Copy link
Contributor Author

More info on the change: https://doc.qt.io/qt-6/qlibraryinfo-obsolete.html

@dalthviz dalthviz changed the title Fix LibraryLocation -> LibraryPath renaming PR: Fix LibraryLocation -> LibraryPath renaming due to deprecation with Qt6 Dec 18, 2022
Copy link
Member

@dalthviz dalthviz left a comment

Choose a reason for hiding this comment

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

Hi @StSav012 thank you for the help with this! I think we should add a test for this. It should go inside test_qtcore.py and be something similar to the tests we have for QLibraryInfo.location:

def test_qlibraryinfo_location():
"""Test QLibraryInfo.location"""
assert QtCore.QLibraryInfo.location is not None
assert QtCore.QLibraryInfo.location(QtCore.QLibraryInfo.PrefixPath) is not None

Other than that, this LGTM 👍 If you have any question to implement the test let us know!

@StSav012
Copy link
Contributor Author

Hi @dalthviz,

Thank you for the feedback. Forgive me for not looking through the tests, for I'm not disciplines enough (yet) to make tests for my code.

As a side note, is line

QtCore.QTextStreamManipulator.exec_ is not None
in the tests correct? I would expect an assert there, like you have in similar places. On the other hand, if there is no exec_ function, the expression should raise an AttributeError, right? Then, many asserts aren't necessary at all.

@dalthviz
Copy link
Member

in the tests correct? I would expect an assert there, like you have in similar places. On the other hand, if there is no exec_ function, the expression should raise an AttributeError, right? Then, many asserts aren't necessary at all.

You are probably right there @StSav012 ! In general I believe we have a lot of room for improvement regarding testing 😅 If you want to help with that or have any ideas feel free to open a new issue to discuss and maybe plan what changes we could do to improve our test suite :)

Copy link
Member

@dalthviz dalthviz left a comment

Choose a reason for hiding this comment

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

Thanks @StSav012 !

@dalthviz dalthviz merged commit 1bb248a into spyder-ide:master Dec 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants