Improve cohort test

Remove SQLite version dependent error string check
This commit is contained in:
Kevin Luo
2015-06-17 16:06:10 -07:00
parent e3d820a7a4
commit 718c21cfc8

View File

@@ -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,