autopkgtests failing with python 3.8
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
crmsh (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Since python3.8 is the default tests are failing like this:
=======
ERROR: Test when expressions
-------
Traceback (most recent call last):
File "/usr/lib/
handler = self.nodes[
KeyError: <class '_ast.Constant'>
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/
return str(minieval(inp, lenv)).lower()
File "/usr/lib/
return SimpleEval(
File "/usr/lib/
return self._eval(
File "/usr/lib/
return handler(node)
File "/usr/lib/
right = self._eval(comp)
File "/usr/lib/
raise FeatureNotAvail
crmsh.minieval.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/
self.
File "/usr/share/
a1 = runtest('stringtest == "balloon"', "balloon")
File "/usr/share/
a1 = scripts.
File "/usr/lib/
actions = _process_
File "/usr/lib/
when = str(action[
File "/usr/lib/
raise ValueError(
ValueError: Sorry, Constant is not available in this evaluator
-------
Ran 258 tests in 1.734s
FAILED (errors=1)
I filed an upstream issue
https:/
And got my MR accepted
https:/
This bug is about getting this into focal to get the tests working again.
Related branches
- Canonical Server Core Reviewers: Pending requested
- Canonical Server: Pending requested
- Canonical Server: Pending requested
-
Diff: 460 lines (+309/-27) (has conflicts)8 files modifieddebian/changelog (+28/-0)
debian/control (+2/-2)
debian/patches/0011-Fix-scripts-init.patch (+1/-1)
debian/patches/0015-Fix-testsuite-errors.patch (+208/-23)
debian/patches/0017-Fix-python3.8-unittest-compatibility.patch (+61/-0)
debian/patches/series (+4/-0)
debian/tests/control (+1/-1)
debian/upstream/metadata (+4/-0)
- Andreas Hasenack: Approve
- Canonical Server: Pending requested
- git-ubuntu developers: Pending requested
-
Diff: 112 lines (+78/-1)4 files modifieddebian/changelog (+7/-0)
debian/control (+2/-1)
debian/patches/scripts-python3.8-unittest-compatibility.patch (+68/-0)
debian/patches/series (+1/-0)
Changed in crmsh (Ubuntu): | |
status: | New → In Progress |
MP up for review https:/ /code.launchpad .net/~paelzer/ ubuntu/ +source/ crmsh/+ git/crmsh/ +merge/ 378235