Bump the distro version to xenial, as this is the first version to
include Python 3.7 support. Bionic is also available but it doesn't
support Python 3.5 [1].
In addition, skip a test that was valid on Python 3.4 - 3.6 but does not
appear to be an issue for Python 3.7.
[1] https://docs.travis-ci.com/user/reference/bionic/#python-support
Signed-off-by: Stephen Finucane <stephen@that.guru>
Fixes: 6267a5fa ("Drop support for Python 3.4, add Python 3.7")
language: python
-dist: trusty
+dist: xenial
sudo: false
python:
from email.mime.text import MIMEText
from email.utils import make_msgid
import os
+import sys
import unittest
from django.test import TestCase
except ValueError:
pass
- @unittest.skipIf(six.PY2, 'Breaks only on Python 3')
+ @unittest.skipUnless((3, 0) <= sys.version_info < (3, 7),
+ 'Breaks only on Python 3.0 - 3.6')
def test_early_fail(self):
file_path = os.path.join(TEST_FUZZ_DIR, 'earlyfail.mbox')
with self.assertRaises(AttributeError):