X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/540b72d62a94015f116ba077e279a5f10d666778..aead670cda417803f2c79b50cf1ea7463c8e37c4:/sdk/python/tests/test_collections.py diff --git a/sdk/python/tests/test_collections.py b/sdk/python/tests/test_collections.py index 56c2352adb..65b89056bb 100644 --- a/sdk/python/tests/test_collections.py +++ b/sdk/python/tests/test_collections.py @@ -7,7 +7,6 @@ from __future__ import absolute_import from builtins import object import arvados import copy -import mock import os import random import re @@ -18,6 +17,8 @@ import time import unittest import parameterized +from unittest import mock + from . import run_test_server from arvados._ranges import Range, LocatorAndRange from arvados.collection import Collection, CollectionReader @@ -593,7 +594,7 @@ class CollectionReaderTestCase(unittest.TestCase, CollectionTestMixin): # Ensure stripped_manifest() doesn't mangle our manifest in # any way other than stripping hints. self.assertEqual( - re.sub('\+[^\d\s\+]+', '', nonnormal), + re.sub(r'\+[^\d\s\+]+', '', nonnormal), reader.stripped_manifest()) # Ensure stripped_manifest() didn't mutate our reader. self.assertEqual(nonnormal, reader.manifest_text())