Abhilash Raj pushed to branch master at GNU Mailman / Mailman Core
Commits: bf7bae68 by Abhilash Raj at 2018-07-13T19:18:24Z Update tox.ini - - - - - 72b72d9e by Abhilash Raj at 2018-07-13T19:23:01Z Add Python 3.7 to CI - - - - - 2dd2dc7e by Abhilash Raj at 2018-07-15T01:22:25Z PEP 479 changes the way StopIteration is handled inside a generator. In Python 3.7, StopIteration is changed to RuntimeError, if they are raised in a generator. This behavior can be implemented in previous versions of Python by using a __future__ import. - - - - - 01e65f84 by Abhilash Raj at 2018-07-20T20:05:06Z Bump flufl.testing version to test __future__ imports - - - - - 9af47322 by Abhilash Raj at 2018-08-27T04:16:58Z Fix the wrong configuration. - - - - - 8b35db5e by Abhilash Raj at 2018-08-27T05:00:03Z Merge branch '495-add-python-3-7-to-the-ci' into 'master' Add Python 3.7 to the CI Closes #495 See merge request mailman/mailman!404 - - - - - 3 changed files: - .gitlab-ci.yml - src/mailman/testing/mta.py - tox.ini Changes: ===================================== .gitlab-ci.yml ===================================== @@ -22,13 +22,13 @@ docs: sqlite: script: - - tox -e py35-nocov,py36-nocov + - tox -e py35-nocov,py36-nocov,py37-nocov pgsql: services: - postgres:latest script: - - MAILMAN_EXTRA_TESTING_CFG=/home/runner/configs/postgres.cfg tox -e py35-nocov-pg,py36-nocov-pg + - MAILMAN_EXTRA_TESTING_CFG=/home/runner/configs/postgres.cfg tox -e py35-nocov-pg,py36-nocov-pg,py37-nocov-pg tags: - postgres @@ -36,12 +36,12 @@ mysql: services: - mysql:5.6 script: - - MAILMAN_EXTRA_TESTING_CFG=/home/runner/configs/mysql.cfg tox -e py35-nocov-mysql,py36-nocov-mysql + - MAILMAN_EXTRA_TESTING_CFG=/home/runner/configs/mysql.cfg tox -e py35-nocov-mysql,py36-nocov-mysql,py37-nocov-mysql tags: - mysql diffcov: script: - - tox -e py35-diffcov,py36-diffcov + - tox -e py35-diffcov,py36-diffcov,py37-diffcov except: - master ===================================== src/mailman/testing/mta.py ===================================== @@ -16,6 +16,7 @@ # GNU Mailman. If not, see <http://www.gnu.org/licenses/>. """Fake MTA for testing purposes.""" +from __future__ import generator_stop import asyncio import smtplib @@ -209,7 +210,7 @@ class ConnectionCountingController(Controller): try: yield self._msg_queue.get_nowait() except Empty: - raise StopIteration + return @property def messages(self): ===================================== tox.ini ===================================== @@ -1,5 +1,5 @@ [tox] -envlist = {py35,py36}-{nocov,cov,diffcov}{,-mysql,-pg},qa +envlist = {py35,py36,py37}-{nocov,cov,diffcov}{,-mysql,-pg},qa #recreate = True skip_missing_interpreters = True @@ -16,7 +16,7 @@ commands = #sitepackages = True usedevelop = True deps = - flufl.testing + flufl.testing>=0.8 nose2 cov,diffcov: coverage pg: psycopg2-binary View it on GitLab: https://gitlab.com/mailman/mailman/compare/d87980b017f9c4d7eb18554cf408dc363b37d394...8b35db5ea26f8c2b704758566e1991bfa4367b83 -- View it on GitLab: https://gitlab.com/mailman/mailman/compare/d87980b017f9c4d7eb18554cf408dc363b37d394...8b35db5ea26f8c2b704758566e1991bfa4367b83 You're receiving this email because of your account on gitlab.com.
_______________________________________________ Mailman-checkins mailing list Mailman-checkins@python.org Unsubscribe: https://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org