| 15 | | `test_reset_sequences` fails with above error if testing against backends not supporting transactions, like MySQL MyIASM engine. |
| | 15 | {{{ |
| | 16 | FAIL: test_execute_tree (test_utils.tests.CaptureOnCommitCallbacksTests) |
| | 17 | A visualisation of the callback tree tested. Each node is expected to |
| | 18 | ---------------------------------------------------------------------- |
| | 19 | Traceback (most recent call last): |
| | 20 | File "/Users/zhangyangyu/repos/django-tidb/django_tests_dir/django/tests/test_utils/tests.py", line 1657, in test_execute_tree |
| | 21 | self.assertEqual(callbacks, [branch_1, branch_2, leaf_3, leaf_1, leaf_2]) |
| | 22 | AssertionError: Lists differ: [] != [<function CaptureOnCommitCallbacksTests.t[412 chars]ee0>] |
| | 23 | |
| | 24 | Second list contains 5 additional elements. |
| | 25 | First extra element 0: |
| | 26 | <function CaptureOnCommitCallbacksTests.test_execute_tree.<locals>.branch_1 at 0x107c52430> |
| | 27 | |
| | 28 | - [] |
| | 29 | + [<function CaptureOnCommitCallbacksTests.test_execute_tree.<locals>.branch_1 at 0x107c52430>, |
| | 30 | + <function CaptureOnCommitCallbacksTests.test_execute_tree.<locals>.branch_2 at 0x107c52040>, |
| | 31 | + <function CaptureOnCommitCallbacksTests.test_execute_tree.<locals>.leaf_3 at 0x107c52dc0>, |
| | 32 | + <function CaptureOnCommitCallbacksTests.test_execute_tree.<locals>.leaf_1 at 0x107e17310>, |
| | 33 | + <function CaptureOnCommitCallbacksTests.test_execute_tree.<locals>.leaf_2 at 0x107c52ee0>] |
| | 34 | }}} |
| | 35 | |
| | 36 | {{{ |
| | 37 | FAIL: test_execute_recursive (test_utils.tests.CaptureOnCommitCallbacksTests) |
| | 38 | ---------------------------------------------------------------------- |
| | 39 | Traceback (most recent call last): |
| | 40 | File "/Users/zhangyangyu/repos/django-tidb/django_tests_dir/django/tests/test_utils/tests.py", line 1604, in test_execute_recursive |
| | 41 | self.assertEqual(len(callbacks), 2) |
| | 42 | AssertionError: 0 != 2 |
| | 43 | }}} |
| | 44 | |
| | 45 | |
| | 46 | `test_reset_sequences`/`test_execute_tree`/`test_execute_recursive` fail with above error if testing against backends not supporting transactions, like MySQL MyIASM engine. |