(self, function)
| 1962 | return set1, set2 |
| 1963 | |
| 1964 | def check_set_op_does_not_crash(self, function): |
| 1965 | for _ in range(100): |
| 1966 | set1, set2 = self.make_sets_of_bad_objects() |
| 1967 | try: |
| 1968 | function(set1, set2) |
| 1969 | except RuntimeError as e: |
| 1970 | # Just make sure we don't crash here. |
| 1971 | self.assertIn("changed size during iteration", str(e)) |
| 1972 | |
| 1973 | |
| 1974 | class TestBinaryOpsMutating(TestOperationsMutating): |
no test coverage detected