Changes between Initial Version and Version 1 of Ticket #33633


Ignore:
Timestamp:
Apr 10, 2022, 7:56:09 AM (2 years ago)
Author:
Xiang Zhang
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #33633

    • Property Summary test_reset_sequences fails for backends not supporting transactionstest_reset_sequences/test_execute_tree/test_execute_recursive fail for backends not supporting transactions
  • Ticket #33633 – Description

    initial v1  
    1313}}}
    1414
    15 `test_reset_sequences` fails with above error if testing against backends not supporting transactions, like MySQL MyIASM engine.
     15{{{
     16FAIL: test_execute_tree (test_utils.tests.CaptureOnCommitCallbacksTests)
     17A visualisation of the callback tree tested. Each node is expected to
     18----------------------------------------------------------------------
     19Traceback (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])
     22AssertionError: Lists differ: [] != [<function CaptureOnCommitCallbacksTests.t[412 chars]ee0>]
     23
     24Second list contains 5 additional elements.
     25First 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{{{
     37FAIL: test_execute_recursive (test_utils.tests.CaptureOnCommitCallbacksTests)
     38----------------------------------------------------------------------
     39Traceback (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)
     42AssertionError: 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.
Back to Top