diff --git a/tests/test_config.py b/tests/test_config.py
index <HASH>..<HASH> 100644
--- a/tests/test_config.py
+++ b/tests/test_config.py
@@ -266,7 +266,7 @@ class TestConfig(TmpDirTestCase):
             f.write('  - !!python/object/apply:sys.exit [66]\n')
 
         pat = "could not determine a constructor for the tag.*python/object/apply"
-        with self.assertRaisesRegexp(scuba.config.ConfigError, pat) as ctx:
+        with self.assertRaisesRegex(scuba.config.ConfigError, pat) as ctx:
             scuba.config.load_config('.scuba.yml')
 
     def test_load_config_safe(self):
Replace assertRaisesRegexp with assertRaisesRegex

The former is a deprecated alias.