[Python-modules-team] Bug#948416: automat ftbfs, tests fail with Python 3.8
Matthias Klose
doko at debian.org
Wed Jan 8 12:25:40 GMT 2020
Package: src:automat
Version: 0.6.0-1
Severity: serious
Tags: sid bullseye patch
The automat tests fail with Python 3.8, apparently fixed in 0.8.0.
Example packaging at https://launchpad.net/ubuntu/+source/automat/0.8.0-0ubuntu1
======================================================================
ERROR: test_badTransitionForCurrentState
(automat._test.test_methodical.MethodicalTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_automat/build/automat/_test/test_methodical.py",
line 385, in test_badTransitionForCurrentState
machine.deadEnd()
File
"/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_automat/build/automat/_methodical.py",
line 126, in __get__
def doInput(*args, **kwargs):
File
"/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_automat/build/automat/_introspection.py",
line 39, in decorator
return copyfunction(decorated,
File
"/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_automat/build/automat/_introspection.py",
line 31, in copyfunction
return function(copycode(template.__code__, codechanges), *values)
File
"/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_automat/build/automat/_introspection.py",
line 19, in copycode
return code(*values)
TypeError: an integer is required (got type bytes)
======================================================================
ERROR: test_collectOutputs (automat._test.test_methodical.MethodicalTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_automat/build/automat/_test/test_methodical.py",
line 169, in test_collectOutputs
self.assertEqual(m.input(), "AB")
File
"/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_automat/build/automat/_methodical.py",
line 126, in __get__
def doInput(*args, **kwargs):
File
"/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_automat/build/automat/_introspection.py",
line 39, in decorator
return copyfunction(decorated,
File
"/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_automat/build/automat/_introspection.py",
line 31, in copyfunction
return function(copycode(template.__code__, codechanges), *values)
File
"/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_automat/build/automat/_introspection.py",
line 19, in copycode
return code(*values)
TypeError: an integer is required (got type bytes)
======================================================================
ERROR: test_inputFunctionsMustBeEmpty
(automat._test.test_methodical.MethodicalTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_automat/build/automat/_test/test_methodical.py",
line 244, in test_inputFunctionsMustBeEmpty
MechanismWithDocstring().input()
File
"/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_automat/build/automat/_methodical.py",
line 126, in __get__
def doInput(*args, **kwargs):
File
"/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_automat/build/automat/_introspection.py",
line 39, in decorator
return copyfunction(decorated,
File
"/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_automat/build/automat/_introspection.py",
line 31, in copyfunction
return function(copycode(template.__code__, codechanges), *values)
File
"/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_automat/build/automat/_introspection.py",
line 19, in copycode
return code(*values)
TypeError: an integer is required (got type bytes)
======================================================================
ERROR: test_inputWithArguments (automat._test.test_methodical.MethodicalTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_automat/build/automat/_test/test_methodical.py",
line 209, in test_inputWithArguments
self.assertEqual(m.input(3), [4])
File
"/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_automat/build/automat/_methodical.py",
line 126, in __get__
def doInput(*args, **kwargs):
File
"/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_automat/build/automat/_introspection.py",
line 39, in decorator
return copyfunction(decorated,
File
"/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_automat/build/automat/_introspection.py",
line 31, in copyfunction
return function(copycode(template.__code__, codechanges), *values)
File
"/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_automat/build/automat/_introspection.py",
line 19, in copycode
return code(*values)
TypeError: an integer is required (got type bytes)
======================================================================
ERROR: test_multipleMachines (automat._test.test_methodical.MethodicalTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_automat/build/automat/_test/test_methodical.py",
line 143, in test_multipleMachines
self.assertEqual(mm.inputA(), ["A"])
File
"/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_automat/build/automat/_methodical.py",
line 126, in __get__
def doInput(*args, **kwargs):
File
"/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_automat/build/automat/_introspection.py",
line 39, in decorator
return copyfunction(decorated,
File
"/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_automat/build/automat/_introspection.py",
line 31, in copyfunction
return function(copycode(template.__code__, codechanges), *values)
File
"/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_automat/build/automat/_introspection.py",
line 19, in copycode
return code(*values)
TypeError: an integer is required (got type bytes)
======================================================================
ERROR: test_oneTransition (automat._test.test_methodical.MethodicalTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_automat/build/automat/_test/test_methodical.py",
line 54, in test_oneTransition
self.assertEqual(m.anInput(), ["an-output-value"])
File
"/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_automat/build/automat/_methodical.py",
line 126, in __get__
def doInput(*args, **kwargs):
File
"/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_automat/build/automat/_introspection.py",
line 39, in decorator
return copyfunction(decorated,
File
"/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_automat/build/automat/_introspection.py",
line 31, in copyfunction
return function(copycode(template.__code__, codechanges), *values)
File
"/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_automat/build/automat/_introspection.py",
line 19, in copycode
return code(*values)
TypeError: an integer is required (got type bytes)
======================================================================
ERROR: test_outputsArePrivate (automat._test.test_methodical.MethodicalTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_automat/build/automat/_test/test_methodical.py",
line 98, in test_outputsArePrivate
mach1.anInput()
File
"/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_automat/build/automat/_methodical.py",
line 126, in __get__
def doInput(*args, **kwargs):
File
"/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_automat/build/automat/_introspection.py",
line 39, in decorator
return copyfunction(decorated,
File
"/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_automat/build/automat/_introspection.py",
line 31, in copyfunction
return function(copycode(template.__code__, codechanges), *values)
File
"/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_automat/build/automat/_introspection.py",
line 19, in copycode
return code(*values)
TypeError: an integer is required (got type bytes)
======================================================================
ERROR: test_restoreState (automat._test.test_methodical.MethodicalTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_automat/build/automat/_test/test_methodical.py",
line 481, in test_restoreState
m1.input()
File
"/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_automat/build/automat/_methodical.py",
line 126, in __get__
def doInput(*args, **kwargs):
File
"/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_automat/build/automat/_introspection.py",
line 39, in decorator
return copyfunction(decorated,
File
"/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_automat/build/automat/_introspection.py",
line 31, in copyfunction
return function(copycode(template.__code__, codechanges), *values)
File
"/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_automat/build/automat/_introspection.py",
line 19, in copycode
return code(*values)
TypeError: an integer is required (got type bytes)
======================================================================
ERROR: test_inputs_and_outputs (automat._test.test_trace.TraceTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_automat/build/automat/_test/test_trace.py",
line 75, in test_inputs_and_outputs
s.go1()
File
"/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_automat/build/automat/_methodical.py",
line 126, in __get__
def doInput(*args, **kwargs):
File
"/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_automat/build/automat/_introspection.py",
line 39, in decorator
return copyfunction(decorated,
File
"/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_automat/build/automat/_introspection.py",
line 31, in copyfunction
return function(copycode(template.__code__, codechanges), *values)
File
"/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_automat/build/automat/_introspection.py",
line 19, in copycode
return code(*values)
TypeError: an integer is required (got type bytes)
======================================================================
ERROR: test_only_inputs (automat._test.test_trace.TraceTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_automat/build/automat/_test/test_trace.py",
line 47, in test_only_inputs
s.go1()
File
"/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_automat/build/automat/_methodical.py",
line 126, in __get__
def doInput(*args, **kwargs):
File
"/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_automat/build/automat/_introspection.py",
line 39, in decorator
return copyfunction(decorated,
File
"/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_automat/build/automat/_introspection.py",
line 31, in copyfunction
return function(copycode(template.__code__, codechanges), *values)
File
"/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_automat/build/automat/_introspection.py",
line 19, in copycode
return code(*values)
TypeError: an integer is required (got type bytes)
======================================================================
FAIL: test_methodName (automat._test.test_methodical.MethodicalTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_automat/build/automat/_test/test_methodical.py",
line 187, in test_methodName
self.assertIn("declaredInputName", str(cm.exception))
AssertionError: 'declaredInputName' not found in 'an integer is required (got
type bytes)'
----------------------------------------------------------------------
Ran 58 tests in 0.009s
FAILED (failures=1, errors=10, skipped=37)
More information about the Python-modules-team
mailing list