From 1a04f6ee86187db8db4ef365276a3cd816d2c2a8 Mon Sep 17 00:00:00 2001 From: Andrew Senetar Date: Tue, 4 Dec 2018 20:16:15 -0600 Subject: [PATCH] Update to fix Travis Build & flake8 warning - Fix Travis build by using dist: xenial so python 3.7 is available - Correct flake8 warning in core/test/app_test.py --- .travis.yml | 1 + core/tests/app_test.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index e14ce64f..5ddc5439 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,4 +1,5 @@ sudo: false +dist: xenial language: python python: - "3.4" diff --git a/core/tests/app_test.py b/core/tests/app_test.py index 25a8e97d..4685a0bb 100644 --- a/core/tests/app_test.py +++ b/core/tests/app_test.py @@ -43,7 +43,7 @@ class TestCaseDupeGuru: eq_('\\(\\)\\[\\]\\\\\\.\\|\\+\\?\\^abc', call['filter_str']) dgapp.apply_filter('(*)') # In "simple mode", we want the * to behave as a wilcard call = dgapp.results.apply_filter.calls[3] - eq_('\(.*\)', call['filter_str']) + eq_(r'\(.*\)', call['filter_str']) dgapp.options['escape_filter_regexp'] = False dgapp.apply_filter('(abc)') call = dgapp.results.apply_filter.calls[5]