diff -Nru netplan.io-0.40.1/debian/changelog netplan.io-0.40.2/debian/changelog --- netplan.io-0.40.1/debian/changelog 2018-10-04 16:05:49.000000000 +0000 +++ netplan.io-0.40.2/debian/changelog 2018-10-04 20:02:53.000000000 +0000 @@ -1,3 +1,9 @@ +netplan.io (0.40.2) cosmic; urgency=medium + + * tests/integration.py: Mark regexes with r to pacify pycodestyle's W605. + + -- Mathieu Trudel-Lapierre Thu, 04 Oct 2018 16:02:53 -0400 + netplan.io (0.40.1) cosmic; urgency=medium * tests/generate.py: use random.sample() instead of random.choices() to diff -Nru netplan.io-0.40.1/tests/integration.py netplan.io-0.40.2/tests/integration.py --- netplan.io-0.40.1/tests/integration.py 2018-10-04 16:05:43.000000000 +0000 +++ netplan.io-0.40.2/tests/integration.py 2018-10-04 19:59:22.000000000 +0000 @@ -64,7 +64,7 @@ # set regulatory domain "EU", so that we can use 80211.a 5 GHz channels out = subprocess.check_output(['iw', 'reg', 'get'], universal_newlines=True) - m = re.match('^(?:global\n)?country (\S+):', out) + m = re.match(r'^(?:global\n)?country (\S+):', out) assert m klass.orig_country = m.group(1) subprocess.check_call(['iw', 'reg', 'set', 'EU']) @@ -425,7 +425,7 @@ expected_state = (self.backend == 'NetworkManager') and 'connected' or 'unmanaged' out = subprocess.check_output(['nmcli', 'dev'], universal_newlines=True) for i in [self.dev_e_client, self.dev_e2_client, 'mybr']: - self.assertRegex(out, '%s\s+(ethernet|bridge)\s+%s' % (i, expected_state)) + self.assertRegex(out, r'%s\s+(ethernet|bridge)\s+%s' % (i, expected_state)) def test_eth_mtu(self): self.setup_eth(None) @@ -1090,7 +1090,7 @@ expected_state = (self.backend == 'NetworkManager') and 'connected' or 'unmanaged' out = subprocess.check_output(['nmcli', 'dev'], universal_newlines=True) for i in [self.dev_e_client, self.dev_e2_client]: - self.assertRegex(out, '%s\s+(ethernet|bridge)\s+%s' % (i, expected_state)) + self.assertRegex(out, r'%s\s+(ethernet|bridge)\s+%s' % (i, expected_state)) with open('/etc/resolv.conf') as f: resolv_conf = f.read()