Tests fail on Python 3.7
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lazr.smtptest |
Fix Released
|
Undecided
|
Colin Watson |
Bug Description
When I run the test suite on Python 3.7 I get the following errors:
=======
$ /usr/bin/python3 setup.py nosetests
running nosetests
running egg_info
writing lazr.smtptest.
writing dependency_links to lazr.smtptest.
writing namespace_packages to lazr.smtptest.
writing requirements to lazr.smtptest.
writing top-level names to lazr.smtptest.
reading manifest file 'lazr.smtptest.
reading manifest template 'MANIFEST.in'
warning: no previously-included files found matching '.bzrignore'
writing manifest file 'lazr.smtptest.
nose.config: INFO: Set working dir to /builddir/
nose.config: INFO: Ignoring files matching ['^\\.', '^_', '^setup\\.py$']
nose.plugins.cover: ERROR: Coverage not available: unable to import coverage module
Doctest: README.rst ... ok
Doctest: queue.rst ... FAIL
Doctest: usage.rst ... ok
=======
FAIL: Doctest: queue.rst
-------
Traceback (most recent call last):
File "/usr/lib64/
raise self.failureExc
AssertionError: Failed doctest test for queue.rst
File "/builddir/
-------
File "/builddir/
Failed example:
for message in controller:
Exception raised:
Traceback (most recent call last):
File "/builddir/
yield self.queue.
File "/usr/lib64/
return self.get(
File "/usr/lib64/
raise Empty
_queue.Empty
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/builddir/
raise StopIteration
StopIteration
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/lib64/
File "<doctest queue.rst[25]>", line 1, in <module>
for message in controller:
RuntimeError: generator raised StopIteration
-------
File "/builddir/
Failed example:
for message in controller:
Exception raised:
Traceback (most recent call last):
File "/builddir/
yield self.queue.
File "/usr/lib64/
return self.get(
File "/usr/lib64/
raise Empty
_queue.Empty
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/builddir/
raise StopIteration
StopIteration
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/lib64/
File "<doctest queue.rst[27]>", line 1, in <module>
for message in controller:
RuntimeError: generator raised StopIteration
-------
lazr.smtptest: INFO: [SMTPServer] listening: localhost:9025
lazr.smtptest: INFO: starting the SMTP server thread
lazr.smtptest: INFO: [SMTPServer] starting asyncore loop
lazr.smtptest: INFO: connecting to localhost:9025
lazr.smtptest: INFO: [SMTPServer] accepted: ('::1', 44848, 0, 0)
lazr.smtptest: INFO: Got HELO response: (250, b'buildvm-
lazr.smtptest: INFO: [SMTPServer] accepted: ('::1', 44850, 0, 0)
lazr.smtptest: INFO: [SMTPServer] processing: ('::1', 44850, 0, 0), <email address hidden>, ['<email address hidden>'], size=133
lazr.smtptest: INFO: [SMTPServer] processed message: <elephant>
lazr.smtptest: INFO: [SMTPServer] processing: ('::1', 44850, 0, 0), <email address hidden>, ['<email address hidden>'], size=131
lazr.smtptest: INFO: [SMTPServer] processed message: <falcon>
lazr.smtptest: INFO: [SMTPServer] processing: ('::1', 44850, 0, 0), <email address hidden>, ['<email address hidden>'], size=129
lazr.smtptest: INFO: [SMTPServer] processed message: <goat>
lazr.smtptest: INFO: stopping the SMTP server thread
lazr.smtptest: INFO: [SMTPServer] accepted: ('::1', 44852, 0, 0)
lazr.smtptest: INFO: SMTP server stopped
lazr.smtptest: INFO: [SMTPServer] listening: localhost:9025
lazr.smtptest: INFO: starting the SMTP server thread
lazr.smtptest: INFO: [SMTPServer] starting asyncore loop
lazr.smtptest: INFO: connecting to localhost:9025
lazr.smtptest: INFO: [SMTPServer] accepted: ('::1', 44854, 0, 0)
lazr.smtptest: INFO: Got HELO response: (250, b'buildvm-
lazr.smtptest: INFO: [SMTPServer] accepted: ('::1', 44856, 0, 0)
lazr.smtptest: INFO: [SMTPServer] processing: ('::1', 44856, 0, 0), <email address hidden>, ['<email address hidden>'], size=130
lazr.smtptest: INFO: [SMTPServer] processed message: <horse>
lazr.smtptest: INFO: [SMTPServer] processing: ('::1', 44856, 0, 0), <email address hidden>, ['<email address hidden>'], size=131
lazr.smtptest: INFO: [SMTPServer] processed message: <iguana>
lazr.smtptest: INFO: [SMTPServer] processing: ('::1', 44856, 0, 0), <email address hidden>, ['<email address hidden>'], size=131
lazr.smtptest: INFO: [SMTPServer] processed message: <jackel>
lazr.smtptest: INFO: [SMTPServer] processing: ('::1', 44856, 0, 0), <email address hidden>, ['<email address hidden>'], size=133
lazr.smtptest: INFO: [SMTPServer] processed message: <kangaroo>
lazr.smtptest: INFO: [SMTPServer] processing: ('::1', 44856, 0, 0), <email address hidden>, ['<email address hidden>'], size=130
lazr.smtptest: INFO: [SMTPServer] processed message: <llama>
lazr.smtptest: INFO: [SMTPServer] processing: ('::1', 44856, 0, 0), <email address hidden>, ['<email address hidden>'], size=131
lazr.smtptest: INFO: [SMTPServer] processed message: <moose>
lazr.smtptest: INFO: resetting the SMTP server.
lazr.smtptest: INFO: [SMTPServer] accepted: ('::1', 44858, 0, 0)
lazr.smtptest: INFO: stopping the SMTP server thread
lazr.smtptest: INFO: [SMTPServer] accepted: ('::1', 44860, 0, 0)
lazr.smtptest: INFO: SMTP server stopped
-------
-------
Ran 3 tests in 0.615s
FAILED (failures=1)
=======
Is Python 3.7 supported at all? The homepage says that it is recommended to use aiosmtpd on Python3 instead of this package.
Related branches
- Ioana Lasc (community): Approve
- LAZR Developers: Pending requested
-
Diff: 46 lines (+6/-2)4 files modifiedlazr/smtptest/controller.py (+1/-1)
lazr/smtptest/docs/NEWS.rst (+2/-0)
setup.py (+2/-0)
tox.ini (+1/-1)
Changed in lazr.smtptest: | |
status: | New → In Progress |
assignee: | nobody → Colin Watson (cjwatson) |
Changed in lazr.smtptest: | |
status: | In Progress → Fix Committed |
Fixed in lazr.smtptest 2.0.4.