-
-
Notifications
You must be signed in to change notification settings - Fork 70
Add a qapp_args fixture #193
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
Conversation
This makes it possible to pass custom arguments to Qt.
This is a stop-gap so I'm able to run end2end tests at least. See #3163. For unit tests, we need pytest-dev/pytest-qt#193 first.
|
Hey @The-Compiler!
I think this is the way to go. Perhaps printing
I think adding a reference to https://github.com/pytest-dev/pytest-qt/blob/master/docs/reference.rst is enough (for both |
|
Hmmm - things seem to work fine on Travis so far (and for me locally), but fail on AppVeyor: Unfortunately the ellipsis don't really help here 😆. Do you know what's going on there? Do we get a |
|
Oh, and it looks like there are some other environments also include the arguments of pytest there, but only on Windows? I'll try writing a more forgiving test and see how that goes. |
1 similar comment
Weird. Well I changed the code to explicitly making a |
1 similar comment
|
I think there are two different issues here:
>>> from PyQt4.QtGui import QApplication
>>> app = QApplication(['--test-arg'])
>>> app.arguments()
<PyQt4.QtCore.QStringList object at 0x7f6dde415500>
>>> list(app.arguments())
[PyQt4.QtCore.QString(u'--test-arg')]
>>> '--test-arg' in list(app.arguments())
TrueSo I guess we can back out your last commit 😉
|
Sounds reasonable I guess. Let's continue this discussion tomorrow then. 👍 |
1 similar comment
|
Phew - after needing three tries to get a working version checks, things look fine now 😆 The PySide2 errors are unrelated: Working on a project which supports 3.5 Qt wrappers with 2 major Python versions on 2+ operating systems sure isn't easy sometimes 😆 This is ready now as far as I'm concerned. |
|
Thanks @The-Compiler!
Indeed! 😆
Yep! I will take a closer look at the errors when I get home, but either way we can probably merge this and push a release. Would you like to do the honors? All is needed is to push a tag and Travis will publish the package. |
|
Sure, let's see how that goes! 🎉 |
|
Looks like that worked! Do you usually write an announce mail or something? |
|
I usually mention it on twitter, adding a link to the changelog. Want to do the honours here as well? 😉 |
|
Hah, looks like you were faster! 😉 |
|
I thought you were asleep by now so decided to send the tweet myself. 😝 |
This makes it possible to pass custom arguments to Qt.
QCoreApplication.arguments()and a subprocess, but I'm not sure whether it works.qappisn't documented at all either. What do you think?