summaryrefslogtreecommitdiff
path: root/tests/serializers/test_yaml.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/serializers/test_yaml.py')
-rw-r--r--tests/serializers/test_yaml.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/serializers/test_yaml.py b/tests/serializers/test_yaml.py
index 2b5933d698..0b4b9b00d1 100644
--- a/tests/serializers/test_yaml.py
+++ b/tests/serializers/test_yaml.py
@@ -82,7 +82,7 @@ class NoYamlSerializerTestCase(SimpleTestCase):
def test_dumpdata_pyyaml_error_message(self):
"""Calling dumpdata produces an error when yaml package missing"""
- with six.assertRaisesRegex(self, management.CommandError, YAML_IMPORT_ERROR_MESSAGE):
+ with self.assertRaisesMessage(management.CommandError, YAML_IMPORT_ERROR_MESSAGE):
management.call_command('dumpdata', format='yaml')