File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -14,9 +14,8 @@ class TestEntityA(DbObject):
1414 class TestEntityB (DbObject ):
1515 another_entity = Relationship .ToOne ("AnotherEntity" , cache = True )
1616
17- assert str (exc_info .value ) == \
18- "Cannot cache a relationship to an Entity with its own cached relationship(s)." \
19- " `test_entity_a` caches `test_entity_b` which caches `['another_entity']`"
17+ assert "`test_entity_a` caches `test_entity_b` which caches `['another_entity']`" in str (
18+ exc_info .value )
2019
2120
2221def test_illegal_cache_cond2 ():
@@ -29,6 +28,5 @@ class TestEntityD(DbObject):
2928 class TestEntityC (DbObject ):
3029 test_entity_d = Relationship .ToOne ("TestEntityD" , cache = True )
3130
32- assert str (exc_info .value ) == \
33- "Cannot cache a relationship to an Entity with its own cached relationship(s)." \
34- " `test_entity_c` caches `test_entity_d` which caches `['another_entity']`"
31+ assert "`test_entity_c` caches `test_entity_d` which caches `['another_entity']`" in str (
32+ exc_info .value )
You can’t perform that action at this time.
0 commit comments