-
-
Notifications
You must be signed in to change notification settings - Fork 505
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
Adds notifies processing during commit #1728
Adds notifies processing during commit #1728
Conversation
By some reason the test fails in CI 😕 It might be some difference in notifications delivery in a different version of postgres. |
I've checked this locally on the version of postgres 9.6 (the same that is used in CI) and the test works. So this seems to be not the reason of the failure in CI. |
Hello, your change makes sense. I wonder if we shouldn't maintain the symmetry and add the About the test failing, I wonder is if there isn't any race condition that gets triggered when the server is remote. Where do you see the failing test? |
Ah, on windows, I see. That's strange: this doesn't seem a platform-dependent change. I would be tempted to just skip the test on window. Of course the tests whose configuration fail are not your fault: the appveyor pipeline hasn't been exercised in a while probably. |
@@ -74,7 +75,9 @@ def notify(self, name, sec=0, payload=None): | |||
module=psycopg2.__name__, | |||
dsn=dsn, sec=sec, name=name, payload=payload)) | |||
|
|||
return Popen([sys.executable, '-c', script], stdout=PIPE) | |||
env = os.environ.copy() | |||
env.pop("PSYCOPG_DEBUG", None) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If tests are run with debug info this is passed to the subprocess and the output of the script which is used by tests cannot be parsed as it is polluted by the debug output.
I've added notifications processing to all places where |
e055ec8
to
cba6d39
Compare
We massaged a bit Appveyor in order to make it build Python 13 package and as a result tests now pass. I think we can merge this. Thank you very much! |
This fixes the issue that asynchronous notifications are not fetched during the commit #1727.