From 0f42c7bdb7d0fba187a8997d0ee8a828d4c2c604 Mon Sep 17 00:00:00 2001 From: Feanil Patel Date: Thu, 5 Sep 2019 08:55:50 -0400 Subject: [PATCH] Unicode raw strings don't exist in python 3. --- .../management/tests/test_populate_retirement_states.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openedx/core/djangoapps/user_api/management/tests/test_populate_retirement_states.py b/openedx/core/djangoapps/user_api/management/tests/test_populate_retirement_states.py index 8cc8fd8202..33c2ce103e 100644 --- a/openedx/core/djangoapps/user_api/management/tests/test_populate_retirement_states.py +++ b/openedx/core/djangoapps/user_api/management/tests/test_populate_retirement_states.py @@ -87,7 +87,7 @@ def test_out_of_order_start_state(settings): del settings.RETIREMENT_STATES[0] settings.RETIREMENT_STATES.insert(4, 'PENDING') - with pytest.raises(CommandError, match=ur'{} must be the first state'.format(START_STATE)): + with pytest.raises(CommandError, match=u'{} must be the first state'.format(START_STATE)): call_command('populate_retirement_states')