enthought / apptools

Other
37 stars 24 forks source link

Test suite fails if .enthought/unittest/preferences.ini already exists #337

Closed mdickinson closed 3 months ago

mdickinson commented 4 months ago

Steps to reproduce (Linux / macOS):

$ cat ~/.enthought/unittest/preferences.ini
[app]
server_url = https://my.server.com

Then (for me), the test suite fails with the following error:

======================================================================
FAIL: test_node_names (apptools.preferences.tests.test_scoped_preferences.ScopedPreferencesTestCase.test_node_names)
node names
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/mdickinson/Enthought/ETS/apptools/apptools/preferences/tests/test_preferences.py", line 242, in test_node_names
    self.assertEqual([], p.node_names())
AssertionError: Lists differ: [] != ['app']

Second list contains 1 additional elements.
First extra element 0:
'app'

- []
+ ['app']