Comments (4)
Btw, there are even more failures on Darwin: https://hydra.nixos.org/build/68775014/log
Nevertheless, tests are running without a problem on x86_64.
from aioimaplib.
Sorry for this very late response, I've been a bit overwhelm with my job. No I don't know the reason. At first sight, I'm wondering about charset management, that was often the case for this literal length failures.
from aioimaplib.
The same test is failing here with Python 3.5 on an x86_64 Ubuntu 16.04 box. It doesn't always fail - there's a timing issue - but it does most of the time.
I've had a look at it, and I can say the following is happening:
IMAP4.wait_server_push
returns the last thing present onIMAP4ClientProtocol.idle_queue
- The test in question expects that value to be
STOP_WAIT_SERVER_PUSH
, which is added on the queue byIMAP4.stop_wait_server_push
, which is called 29 minutes (the default) afterIMAP4.idle_start
was invoked. The purpose of this is that, even though we're waiting for server to push things to us, we should talk to it every 29 minutes as it might time us out otherwise; - What happens when the test fails is that
IdleCommand.flush
is invoked afterIMAP4.stop_wait_server_push
, and that adds on top ofIMAP4ClientProtocal.idle_queue
a number of 'OK Still here' messages that were received from the server and buffered onIdleCommand.buffer
. So the last entry on that queue is notSTOP_WAIT_SERVER_PUSH
as the test was expecting.
I don't know yet whether it is expected that IdleCommand.flush
can be invoked after IMAP4.stop_wait_server_push
. Depending on that, there is either a problem in the code, or a problem in the test.
I won't have time to look at it more for a few days, so if anyone has some further insights feel free to continue working on this one :-)
from aioimaplib.
the test aioimaplib.tests.test_aioimaplib.TestAioimaplibClocked
is always failing on travis with ubuntu 14.04 / python 3.5.5 installed from tarball. It has passed 10 times on my laptop xubuntu 16.04 with python 3.6.3 installed from ppa jonathonf/python-3.6
. It has passed also with python 3.5.2
I'm wondering if it is related to #30
from aioimaplib.
Related Issues (20)
- result, data = await imap.search('FROM', '[email protected]', 'SUBJECT', 'One Time Password')
- How to get mailboxes?
- STOP_WAIT_SERVER_PUSH is str not bytes
- The example in the README.rst shows a different behaviour from what happens on my system HOT 1
- How to handle literals in FETCH response HOT 5
- SCRAM-SHA-1(-PLUS) + SCRAM-SHA-256(-PLUS) + SCRAM-SHA-512(-PLUS) + SCRAM-SHA3-512(-PLUS) supports
- Speed of aioimaplib HOT 1
- Not compatible with python 3.10 HOT 3
- test_get_quotaroot fails HOT 1
- Py 3.10: ssl.SSLError: Cannot create a client socket with a PROTOCOL_TLS_SERVER context HOT 7
- Release Bump to 1.0.1 HOT 3
- Fix compatibility with Python 3.10+ HOT 2
- Check for BYE response
- How use proxy? HOT 1
- SSLError not thrown by the client
- Bump release with xoauth? HOT 2
- login() method logs passwords HOT 2
- How to read e-mail content? HOT 1
- Release with py.typed
- No UNSELECT support?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aioimaplib.