enthought / enthought/traitsui

wx test interactons? / test_key_click_backspace_with_selection failure when running full test suite

Open
#1,655 0 comments 0 reactions 0 assignees View on GitHub
component: test suite priority: low toolkit: WxPython4
Dominant language
Python
Stars
306
Forks
99
PR merge metrics
No merged PRs in 30d

Description

to reproduce:

```
python etstool.py install --toolkit=wx --editable
edm shell -e traitsui-test-3.6-wx
python -m unittest
```

many tests fail (😞 ), but specifically I see:
```
======================================================================
FAIL: test_key_click_backspace_with_selection (traitsui.testing.tester._ui_tester_registry.wx.tests.test_interaction_helpers.TestInteractions)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/aayres/Desktop/traitsui/traitsui/testing/tester/_ui_tester_registry/wx/tests/test_interaction_helpers.py", line 162, in test_key_click_backspace_with_selection
self.assertEqual(textbox.Value, "E")
AssertionError: 'ABCD' != 'E'
- ABCD
+ E
```

However, if I run:
`python -m unittest traitsui/testing/tester/_ui_tester_registry/wx/tests/test_interaction_helpers.py -v`
all tests pass, specifically
`test_key_click_backspace_with_selection (traitsui.testing.tester._ui_tester_registry.wx.tests.test_interaction_helpers.TestInteractions) ... ok`

This suggests this test is somehow being affected by other tests in the test suite?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.