From 718c21cfc8fa20f45a329fb0d7eb8e1bf9ca376b Mon Sep 17 00:00:00 2001 From: Kevin Luo Date: Wed, 17 Jun 2015 16:06:10 -0700 Subject: [PATCH] Improve cohort test Remove SQLite version dependent error string check --- openedx/core/djangoapps/course_groups/tests/test_cohorts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openedx/core/djangoapps/course_groups/tests/test_cohorts.py b/openedx/core/djangoapps/course_groups/tests/test_cohorts.py index 37ad200f39..7445e443c4 100644 --- a/openedx/core/djangoapps/course_groups/tests/test_cohorts.py +++ b/openedx/core/djangoapps/course_groups/tests/test_cohorts.py @@ -886,7 +886,7 @@ class TestCohortsAndPartitionGroups(ModuleStoreTestCase): self.partition_id, self.group1_id, ) - with self.assertRaisesRegexp(IntegrityError, 'not unique'): + with self.assertRaises(IntegrityError): self._link_cohort_partition_group( self.first_cohort, self.partition_id,