Python3.10 error
Bug #1954321 reported by
Corey Bryant
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
Fix Released
|
Undecided
|
Cyril Roelandt |
Bug Description
tox -e py310 fails - Please see comment #1.
description: | updated |
Changed in glance: | |
status: | New → In Progress |
Changed in glance: | |
assignee: | nobody → Cyril Roelandt (cyril-roelandt) |
To post a comment you must log in.
The following issue is hit when running tests with 'tox -e py310':
{1} glance. tests.unit. common. test_property_ utils.TestPrope rtyRulesWithRol es.test_ property_ protection_ with_misspelt_ operation [0.131982s] ... FAILED
Captured traceback:
~~~~~~~~~~~~~~~~~~~
Traceback (most recent call last):
File "/usr/lib/ python3. 10/configparser .py", line 790, in get
value = d[option]
File "/usr/lib/ python3. 10/collections/ __init_ _.py", line 982, in __getitem__ missing_ _(key) # support subclasses that define __missing__
return self.__
File "/usr/lib/ python3. 10/collections/ __init_ _.py", line 974, in __missing__
raise KeyError(key)
KeyError: 'read'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/ corey/pkg/ yoga/upstream/ glance/ glance/ tests/unit/ common/ test_property_ utils.py" , line 105, in test_property_ protection_ with_misspelt_ operation assertRaises( exception. InvalidProperty ProtectionConfi guration,
self.
File "/home/ corey/pkg/ yoga/upstream/ glance/ .tox/py310/ lib/python3. 10/site- packages/ testtools/ testcase. py", line 467, in assertRaises assertThat( our_callable, matcher)
self.
File "/home/ corey/pkg/ yoga/upstream/ glance/ .tox/py310/ lib/python3. 10/site- packages/ testtools/ testcase. py", line 478, in assertThat er(matchee, matcher, message, verbose)
mismatch_error = self._matchHelp
File "/home/ corey/pkg/ yoga/upstream/ glance/ .tox/py310/ lib/python3. 10/site- packages/ testtools/ testcase. py", line 530, in _matchHelper match(matchee)
mismatch = matcher.
File "/home/ corey/pkg/ yoga/upstream/ glance/ .tox/py310/ lib/python3. 10/site- packages/ testtools/ matchers/ _exception. py", line 104, in match matcher. match(exc_ info)
mismatch = self.exception_
File "/home/ corey/pkg/ yoga/upstream/ glance/ .tox/py310/ lib/python3. 10/site- packages/ testtools/ matchers/ _higherorder. py", line 62, in match match(matchee)
mismatch = matcher.
File "/home/ corey/pkg/ yoga/upstream/ glance/ .tox/py310/ lib/python3. 10/site- packages/ testtools/ testcase. py", line 457, in match *matchee)
reraise(
File "/home/ corey/pkg/ yoga/upstream/ glance/ .tox/py310/ lib/python3. 10/site- packages/ testtools/ compat. py", line 27, in reraise with_traceback( exc_tb)
raise exc_obj.
File "/home/ corey/pkg/ yoga/upstream/ glance/ .tox/py310/ lib/python3. 10/site- packages/ testtools/ matchers/ _exception. py", line 97, in match
result = matchee()
File "/home/ corey/pkg/ yoga/upstream/ glance/ .tox/py310/ lib/python3. 10/site- packages/ testtools/ testcase. py", line 1039, in __call__ object( *self._ args, **self._kwargs)
return self._callable_
File "/home/ corey/pkg/ yoga/upstream/ glance/ glance/ common/ property_ utils.py" , line 109, in __init__ _load_rules( )
self.
File "/home/ corey/pkg/ yoga/upstream/ glance/ glance/ common/ property_ utils.py" , line 137, in _load_rules get(property_ exp, operation)
permissions = CONFIG.
File "/usr/lib/ python3. 10/configparser .py", line 793, in get option, section)
raise NoOptionError(
configparse r.NoOptionError : No option 'read' in section: '^[0-9]'