Source: python-pytest-random-order
Version: 1.1.0-1
Severity: serious

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Dear maintainer,

your package implicitly depends on python3-py for its autopkgtest, which used
to be provided by python3-pytest. However, pytest has dropped that dependency,
breaking your autopkgtest and possibly your package.


Cheers
Timo

Relevant excerpt from
https://ci.debian.net/data/autopkgtest/testing/amd64/p/python-pytest-random-order/35336221/log.gz

 40s ==================================== ERRORS 
====================================
 40s _________ ERROR at setup of test_it_works_with_actual_tests[class-2-5] 
_________
 40s 
 40s testdir = <Testdir 
local('/tmp/pytest-of-debci/pytest-0/test_it_works_with_actual_tests0')>
 40s 
 40s     @pytest.fixture
 40s     def tmp_tree_of_tests(testdir):
 40s         """
 40s         Creates a directory structure:
 40s             tmpdir/
 40s                 shallow_tests/
 40s                     test_a.py 2 passing, 1 failing
 40s                     deep_tests/
 40s                         test_b.py 2 passing, 1 failing
 40s                         test_c.py 1 passing
 40s                         test_d.py 2 passing
 40s                         test_e.py a class, 2 passing, 1 failing
 40s     
 40s         If module name doesn't start with "test_", it isn't picked up by 
runpytest.
 40s         """
 40s     
 40s         sup = testdir.mkpydir('shallow_tests')
 40s     
 40s >       sup.join('test_a.py').write(py.code.Source("""
 40s             def test_a1():
 40s                 assert False
 40s             def test_a2():
 40s                 assert True
 40s             def test_a3():
 40s                 assert True
 40s         """))
 40s E       AttributeError: module 'py' has no attribute 'code'
 40s 
 40s 
/tmp/autopkgtest-lxc.hl72zszt/downtmp/build.oRr/src/tests/test_actual_test_runs.py:27:
 AttributeError
 40s ________ ERROR at setup of test_it_works_with_actual_tests[module-2-5] 
_________
 40s 
 40s testdir = <Testdir 
local('/tmp/pytest-of-debci/pytest-0/test_it_works_with_actual_tests1')>
 40s 
 40s     @pytest.fixture
 40s     def tmp_tree_of_tests(testdir):
 40s         """
 40s         Creates a directory structure:
 40s             tmpdir/
 40s                 shallow_tests/
 40s                     test_a.py 2 passing, 1 failing
 40s                     deep_tests/
 40s                         test_b.py 2 passing, 1 failing
 40s                         test_c.py 1 passing
 40s                         test_d.py 2 passing
 40s                         test_e.py a class, 2 passing, 1 failing
 40s     
 40s         If module name doesn't start with "test_", it isn't picked up by 
runpytest.
 40s         """
 40s     
 40s         sup = testdir.mkpydir('shallow_tests')
 40s     
 40s >       sup.join('test_a.py').write(py.code.Source("""
 40s             def test_a1():
 40s                 assert False
 40s             def test_a2():
 40s                 assert True
 40s             def test_a3():
 40s                 assert True
 40s         """))
 40s E       AttributeError: module 'py' has no attribute 'code'
 40s 
 40s 
/tmp/autopkgtest-lxc.hl72zszt/downtmp/build.oRr/src/tests/test_actual_test_runs.py:27:
 AttributeError
 40s ________ ERROR at setup of test_it_works_with_actual_tests[package-2-5] 
________
 40s 
 40s testdir = <Testdir 
local('/tmp/pytest-of-debci/pytest-0/test_it_works_with_actual_tests2')>
 40s 
 40s     @pytest.fixture
 40s     def tmp_tree_of_tests(testdir):
 40s         """
 40s         Creates a directory structure:
 40s             tmpdir/
 40s                 shallow_tests/
 40s                     test_a.py 2 passing, 1 failing
 40s                     deep_tests/
 40s                         test_b.py 2 passing, 1 failing
 40s                         test_c.py 1 passing
 40s                         test_d.py 2 passing
 40s                         test_e.py a class, 2 passing, 1 failing
 40s     
 40s         If module name doesn't start with "test_", it isn't picked up by 
runpytest.
 40s         """
 40s     
 40s         sup = testdir.mkpydir('shallow_tests')
 40s     
 40s >       sup.join('test_a.py').write(py.code.Source("""
 40s             def test_a1():
 40s                 assert False
 40s             def test_a2():
 40s                 assert True
 40s             def test_a3():
 40s                 assert True
 40s         """))
 40s E       AttributeError: module 'py' has no attribute 'code'
 40s 
 40s 
/tmp/autopkgtest-lxc.hl72zszt/downtmp/build.oRr/src/tests/test_actual_test_runs.py:27:
 AttributeError
 40s ________ ERROR at setup of test_it_works_with_actual_tests[global-2-5] 
_________
 40s 
 40s testdir = <Testdir 
local('/tmp/pytest-of-debci/pytest-0/test_it_works_with_actual_tests3')>
 40s 
 40s     @pytest.fixture
 40s     def tmp_tree_of_tests(testdir):
 40s         """
 40s         Creates a directory structure:
 40s             tmpdir/
 40s                 shallow_tests/
 40s                     test_a.py 2 passing, 1 failing
 40s                     deep_tests/
 40s                         test_b.py 2 passing, 1 failing
 40s                         test_c.py 1 passing
 40s                         test_d.py 2 passing
 40s                         test_e.py a class, 2 passing, 1 failing
 40s     
 40s         If module name doesn't start with "test_", it isn't picked up by 
runpytest.
 40s         """
 40s     
 40s         sup = testdir.mkpydir('shallow_tests')
 40s     
 40s >       sup.join('test_a.py').write(py.code.Source("""
 40s             def test_a1():
 40s                 assert False
 40s             def test_a2():
 40s                 assert True
 40s             def test_a3():
 40s                 assert True
 40s         """))
 40s E       AttributeError: module 'py' has no attribute 'code'
 40s 
 40s 
/tmp/autopkgtest-lxc.hl72zszt/downtmp/build.oRr/src/tests/test_actual_test_runs.py:27:
 AttributeError
 40s _________ ERROR at setup of test_it_works_with_actual_tests[none-1-1] 
__________
 40s 
 40s testdir = <Testdir 
local('/tmp/pytest-of-debci/pytest-0/test_it_works_with_actual_tests4')>
 40s 
 40s     @pytest.fixture
 40s     def tmp_tree_of_tests(testdir):
 40s         """
 40s         Creates a directory structure:
 40s             tmpdir/
 40s                 shallow_tests/
 40s                     test_a.py 2 passing, 1 failing
 40s                     deep_tests/
 40s                         test_b.py 2 passing, 1 failing
 40s                         test_c.py 1 passing
 40s                         test_d.py 2 passing
 40s                         test_e.py a class, 2 passing, 1 failing
 40s     
 40s         If module name doesn't start with "test_", it isn't picked up by 
runpytest.
 40s         """
 40s     
 40s         sup = testdir.mkpydir('shallow_tests')
 40s     
 40s >       sup.join('test_a.py').write(py.code.Source("""
 40s             def test_a1():
 40s                 assert False
 40s             def test_a2():
 40s                 assert True
 40s             def test_a3():
 40s                 assert True
 40s         """))
 40s E       AttributeError: module 'py' has no attribute 'code'
 40s 
 40s 
/tmp/autopkgtest-lxc.hl72zszt/downtmp/build.oRr/src/tests/test_actual_test_runs.py:27:
 AttributeError
 40s ________ ERROR at setup of test_it_works_with_actual_tests[parent-1-5] 
_________
 40s 
 40s testdir = <Testdir 
local('/tmp/pytest-of-debci/pytest-0/test_it_works_with_actual_tests5')>
 40s 
 40s     @pytest.fixture
 40s     def tmp_tree_of_tests(testdir):
 40s         """
 40s         Creates a directory structure:
 40s             tmpdir/
 40s                 shallow_tests/
 40s                     test_a.py 2 passing, 1 failing
 40s                     deep_tests/
 40s                         test_b.py 2 passing, 1 failing
 40s                         test_c.py 1 passing
 40s                         test_d.py 2 passing
 40s                         test_e.py a class, 2 passing, 1 failing
 40s     
 40s         If module name doesn't start with "test_", it isn't picked up by 
runpytest.
 40s         """
 40s     
 40s         sup = testdir.mkpydir('shallow_tests')
 40s     
 40s >       sup.join('test_a.py').write(py.code.Source("""
 40s             def test_a1():
 40s                 assert False
 40s             def test_a2():
 40s                 assert True
 40s             def test_a3():
 40s                 assert True
 40s         """))
 40s E       AttributeError: module 'py' has no attribute 'code'
 40s 
 40s 
/tmp/autopkgtest-lxc.hl72zszt/downtmp/build.oRr/src/tests/test_actual_test_runs.py:27:
 AttributeError
 40s ______ ERROR at setup of test_it_works_with_actual_tests[grandparent-1-5] 
______
 40s 
 40s testdir = <Testdir 
local('/tmp/pytest-of-debci/pytest-0/test_it_works_with_actual_tests6')>
 40s 
 40s     @pytest.fixture
 40s     def tmp_tree_of_tests(testdir):
 40s         """
 40s         Creates a directory structure:
 40s             tmpdir/
 40s                 shallow_tests/
 40s                     test_a.py 2 passing, 1 failing
 40s                     deep_tests/
 40s                         test_b.py 2 passing, 1 failing
 40s                         test_c.py 1 passing
 40s                         test_d.py 2 passing
 40s                         test_e.py a class, 2 passing, 1 failing
 40s     
 40s         If module name doesn't start with "test_", it isn't picked up by 
runpytest.
 40s         """
 40s     
 40s         sup = testdir.mkpydir('shallow_tests')
 40s     
 40s >       sup.join('test_a.py').write(py.code.Source("""
 40s             def test_a1():
 40s                 assert False
 40s             def test_a2():
 40s                 assert True
 40s             def test_a3():
 40s                 assert True
 40s         """))
 40s E       AttributeError: module 'py' has no attribute 'code'
 40s 
 40s 
/tmp/autopkgtest-lxc.hl72zszt/downtmp/build.oRr/src/tests/test_actual_test_runs.py:27:
 AttributeError
 40s _________________ ERROR at setup of test_failed_first[global] 
__________________
 40s 
 40s testdir = <Testdir 
local('/tmp/pytest-of-debci/pytest-0/test_failed_first0')>
 40s 
 40s     @pytest.fixture
 40s     def tmp_tree_of_tests(testdir):
 40s         """
 40s         Creates a directory structure:
 40s             tmpdir/
 40s                 shallow_tests/
 40s                     test_a.py 2 passing, 1 failing
 40s                     deep_tests/
 40s                         test_b.py 2 passing, 1 failing
 40s                         test_c.py 1 passing
 40s                         test_d.py 2 passing
 40s                         test_e.py a class, 2 passing, 1 failing
 40s     
 40s         If module name doesn't start with "test_", it isn't picked up by 
runpytest.
 40s         """
 40s     
 40s         sup = testdir.mkpydir('shallow_tests')
 40s     
 40s >       sup.join('test_a.py').write(py.code.Source("""
 40s             def test_a1():
 40s                 assert False
 40s             def test_a2():
 40s                 assert True
 40s             def test_a3():
 40s                 assert True
 40s         """))
 40s E       AttributeError: module 'py' has no attribute 'code'
 40s 
 40s 
/tmp/autopkgtest-lxc.hl72zszt/downtmp/build.oRr/src/tests/test_actual_test_runs.py:27:
 AttributeError
 40s _________________ ERROR at setup of test_failed_first[package] 
_________________
 40s 
 40s testdir = <Testdir 
local('/tmp/pytest-of-debci/pytest-0/test_failed_first1')>
 40s 
 40s     @pytest.fixture
 40s     def tmp_tree_of_tests(testdir):
 40s         """
 40s         Creates a directory structure:
 40s             tmpdir/
 40s                 shallow_tests/
 40s                     test_a.py 2 passing, 1 failing
 40s                     deep_tests/
 40s                         test_b.py 2 passing, 1 failing
 40s                         test_c.py 1 passing
 40s                         test_d.py 2 passing
 40s                         test_e.py a class, 2 passing, 1 failing
 40s     
 40s         If module name doesn't start with "test_", it isn't picked up by 
runpytest.
 40s         """
 40s     
 40s         sup = testdir.mkpydir('shallow_tests')
 40s     
 40s >       sup.join('test_a.py').write(py.code.Source("""
 40s             def test_a1():
 40s                 assert False
 40s             def test_a2():
 40s                 assert True
 40s             def test_a3():
 40s                 assert True
 40s         """))
 40s E       AttributeError: module 'py' has no attribute 'code'
 40s 
 40s 
/tmp/autopkgtest-lxc.hl72zszt/downtmp/build.oRr/src/tests/test_actual_test_runs.py:27:
 AttributeError
 40s _________________ ERROR at setup of test_failed_first[module] 
__________________
 40s 
 40s testdir = <Testdir 
local('/tmp/pytest-of-debci/pytest-0/test_failed_first2')>
 40s 
 40s     @pytest.fixture
 40s     def tmp_tree_of_tests(testdir):
 40s         """
 40s         Creates a directory structure:
 40s             tmpdir/
 40s                 shallow_tests/
 40s                     test_a.py 2 passing, 1 failing
 40s                     deep_tests/
 40s                         test_b.py 2 passing, 1 failing
 40s                         test_c.py 1 passing
 40s                         test_d.py 2 passing
 40s                         test_e.py a class, 2 passing, 1 failing
 40s     
 40s         If module name doesn't start with "test_", it isn't picked up by 
runpytest.
 40s         """
 40s     
 40s         sup = testdir.mkpydir('shallow_tests')
 40s     
 40s >       sup.join('test_a.py').write(py.code.Source("""
 40s             def test_a1():
 40s                 assert False
 40s             def test_a2():
 40s                 assert True
 40s             def test_a3():
 40s                 assert True
 40s         """))
 40s E       AttributeError: module 'py' has no attribute 'code'
 40s 
 40s 
/tmp/autopkgtest-lxc.hl72zszt/downtmp/build.oRr/src/tests/test_actual_test_runs.py:27:
 AttributeError
 40s __________________ ERROR at setup of test_failed_first[class] 
__________________
 40s 
 40s testdir = <Testdir 
local('/tmp/pytest-of-debci/pytest-0/test_failed_first3')>
 40s 
 40s     @pytest.fixture
 40s     def tmp_tree_of_tests(testdir):
 40s         """
 40s         Creates a directory structure:
 40s             tmpdir/
 40s                 shallow_tests/
 40s                     test_a.py 2 passing, 1 failing
 40s                     deep_tests/
 40s                         test_b.py 2 passing, 1 failing
 40s                         test_c.py 1 passing
 40s                         test_d.py 2 passing
 40s                         test_e.py a class, 2 passing, 1 failing
 40s     
 40s         If module name doesn't start with "test_", it isn't picked up by 
runpytest.
 40s         """
 40s     
 40s         sup = testdir.mkpydir('shallow_tests')
 40s     
 40s >       sup.join('test_a.py').write(py.code.Source("""
 40s             def test_a1():
 40s                 assert False
 40s             def test_a2():
 40s                 assert True
 40s             def test_a3():
 40s                 assert True
 40s         """))
 40s E       AttributeError: module 'py' has no attribute 'code'
 40s 
 40s 
/tmp/autopkgtest-lxc.hl72zszt/downtmp/build.oRr/src/tests/test_actual_test_runs.py:27:
 AttributeError
 40s _________________ ERROR at setup of test_failed_first[parent] 
__________________
 40s 
 40s testdir = <Testdir 
local('/tmp/pytest-of-debci/pytest-0/test_failed_first4')>
 40s 
 40s     @pytest.fixture
 40s     def tmp_tree_of_tests(testdir):
 40s         """
 40s         Creates a directory structure:
 40s             tmpdir/
 40s                 shallow_tests/
 40s                     test_a.py 2 passing, 1 failing
 40s                     deep_tests/
 40s                         test_b.py 2 passing, 1 failing
 40s                         test_c.py 1 passing
 40s                         test_d.py 2 passing
 40s                         test_e.py a class, 2 passing, 1 failing
 40s     
 40s         If module name doesn't start with "test_", it isn't picked up by 
runpytest.
 40s         """
 40s     
 40s         sup = testdir.mkpydir('shallow_tests')
 40s     
 40s >       sup.join('test_a.py').write(py.code.Source("""
 40s             def test_a1():
 40s                 assert False
 40s             def test_a2():
 40s                 assert True
 40s             def test_a3():
 40s                 assert True
 40s         """))
 40s E       AttributeError: module 'py' has no attribute 'code'
 40s 
 40s 
/tmp/autopkgtest-lxc.hl72zszt/downtmp/build.oRr/src/tests/test_actual_test_runs.py:27:
 AttributeError
 40s _______________ ERROR at setup of test_failed_first[grandparent] 
_______________
 40s 
 40s testdir = <Testdir 
local('/tmp/pytest-of-debci/pytest-0/test_failed_first5')>
 40s 
 40s     @pytest.fixture
 40s     def tmp_tree_of_tests(testdir):
 40s         """
 40s         Creates a directory structure:
 40s             tmpdir/
 40s                 shallow_tests/
 40s                     test_a.py 2 passing, 1 failing
 40s                     deep_tests/
 40s                         test_b.py 2 passing, 1 failing
 40s                         test_c.py 1 passing
 40s                         test_d.py 2 passing
 40s                         test_e.py a class, 2 passing, 1 failing
 40s     
 40s         If module name doesn't start with "test_", it isn't picked up by 
runpytest.
 40s         """
 40s     
 40s         sup = testdir.mkpydir('shallow_tests')
 40s     
 40s >       sup.join('test_a.py').write(py.code.Source("""
 40s             def test_a1():
 40s                 assert False
 40s             def test_a2():
 40s                 assert True
 40s             def test_a3():
 40s                 assert True
 40s         """))
 40s E       AttributeError: module 'py' has no attribute 'code'
 40s 
 40s 
/tmp/autopkgtest-lxc.hl72zszt/downtmp/build.oRr/src/tests/test_actual_test_runs.py:27:
 AttributeError
 40s __________________ ERROR at setup of test_failed_first[none] 
___________________
 40s 
 40s testdir = <Testdir 
local('/tmp/pytest-of-debci/pytest-0/test_failed_first6')>
 40s 
 40s     @pytest.fixture
 40s     def tmp_tree_of_tests(testdir):
 40s         """
 40s         Creates a directory structure:
 40s             tmpdir/
 40s                 shallow_tests/
 40s                     test_a.py 2 passing, 1 failing
 40s                     deep_tests/
 40s                         test_b.py 2 passing, 1 failing
 40s                         test_c.py 1 passing
 40s                         test_d.py 2 passing
 40s                         test_e.py a class, 2 passing, 1 failing
 40s     
 40s         If module name doesn't start with "test_", it isn't picked up by 
runpytest.
 40s         """
 40s     
 40s         sup = testdir.mkpydir('shallow_tests')
 40s     
 40s >       sup.join('test_a.py').write(py.code.Source("""
 40s             def test_a1():
 40s                 assert False
 40s             def test_a2():
 40s                 assert True
 40s             def test_a3():
 40s                 assert True
 40s         """))
 40s E       AttributeError: module 'py' has no attribute 'code'
 40s 
 40s 
/tmp/autopkgtest-lxc.hl72zszt/downtmp/build.oRr/src/tests/test_actual_test_runs.py:27:
 AttributeError
 40s ___________________ ERROR at setup of test_doctests[global] 
____________________
 40s 
 40s testdir = <Testdir local('/tmp/pytest-of-debci/pytest-0/test_doctests0')>
 40s 
 40s     @pytest.fixture
 40s     def tmp_tree_of_tests(testdir):
 40s         """
 40s         Creates a directory structure:
 40s             tmpdir/
 40s                 foo.py
 40s     
 40s         """
 40s     
 40s         utils_package = testdir.mkpydir('utils')
 40s         utils_package.join('__init__.py').write('')
 40s     
 40s >       utils_package.join('foo.py').write(py.code.Source('''
 40s             def add(a, b):
 40s                 """
 40s                 >>> add(1, 1)
 40s                 2
 40s                 >>> add(0, 0)
 40s                 0
 40s                 """
 40s                 return a + b
 40s     
 40s             def subtract(a, b):
 40s                 """
 40s                 >>> subtract(1, 1)
 40s                 0
 40s                 >>> subtract(0, 2)
 40s                 -2
 40s                 """
 40s                 return a - b
 40s         '''))
 40s E       AttributeError: module 'py' has no attribute 'code'
 40s 
 40s 
/tmp/autopkgtest-lxc.hl72zszt/downtmp/build.oRr/src/tests/test_doctests.py:18: 
AttributeError
 40s ___________________ ERROR at setup of test_doctests[package] 
___________________
 40s 
 40s testdir = <Testdir local('/tmp/pytest-of-debci/pytest-0/test_doctests1')>
 40s 
 40s     @pytest.fixture
 40s     def tmp_tree_of_tests(testdir):
 40s         """
 40s         Creates a directory structure:
 40s             tmpdir/
 40s                 foo.py
 40s     
 40s         """
 40s     
 40s         utils_package = testdir.mkpydir('utils')
 40s         utils_package.join('__init__.py').write('')
 40s     
 40s >       utils_package.join('foo.py').write(py.code.Source('''
 40s             def add(a, b):
 40s                 """
 40s                 >>> add(1, 1)
 40s                 2
 40s                 >>> add(0, 0)
 40s                 0
 40s                 """
 40s                 return a + b
 40s     
 40s             def subtract(a, b):
 40s                 """
 40s                 >>> subtract(1, 1)
 40s                 0
 40s                 >>> subtract(0, 2)
 40s                 -2
 40s                 """
 40s                 return a - b
 40s         '''))
 40s E       AttributeError: module 'py' has no attribute 'code'
 40s 
 40s 
/tmp/autopkgtest-lxc.hl72zszt/downtmp/build.oRr/src/tests/test_doctests.py:18: 
AttributeError
 40s ___________________ ERROR at setup of test_doctests[module] 
____________________
 40s 
 40s testdir = <Testdir local('/tmp/pytest-of-debci/pytest-0/test_doctests2')>
 40s 
 40s     @pytest.fixture
 40s     def tmp_tree_of_tests(testdir):
 40s         """
 40s         Creates a directory structure:
 40s             tmpdir/
 40s                 foo.py
 40s     
 40s         """
 40s     
 40s         utils_package = testdir.mkpydir('utils')
 40s         utils_package.join('__init__.py').write('')
 40s     
 40s >       utils_package.join('foo.py').write(py.code.Source('''
 40s             def add(a, b):
 40s                 """
 40s                 >>> add(1, 1)
 40s                 2
 40s                 >>> add(0, 0)
 40s                 0
 40s                 """
 40s                 return a + b
 40s     
 40s             def subtract(a, b):
 40s                 """
 40s                 >>> subtract(1, 1)
 40s                 0
 40s                 >>> subtract(0, 2)
 40s                 -2
 40s                 """
 40s                 return a - b
 40s         '''))
 40s E       AttributeError: module 'py' has no attribute 'code'
 40s 
 40s 
/tmp/autopkgtest-lxc.hl72zszt/downtmp/build.oRr/src/tests/test_doctests.py:18: 
AttributeError
 40s ____________________ ERROR at setup of test_doctests[class] 
____________________
 40s 
 40s testdir = <Testdir local('/tmp/pytest-of-debci/pytest-0/test_doctests3')>
 40s 
 40s     @pytest.fixture
 40s     def tmp_tree_of_tests(testdir):
 40s         """
 40s         Creates a directory structure:
 40s             tmpdir/
 40s                 foo.py
 40s     
 40s         """
 40s     
 40s         utils_package = testdir.mkpydir('utils')
 40s         utils_package.join('__init__.py').write('')
 40s     
 40s >       utils_package.join('foo.py').write(py.code.Source('''
 40s             def add(a, b):
 40s                 """
 40s                 >>> add(1, 1)
 40s                 2
 40s                 >>> add(0, 0)
 40s                 0
 40s                 """
 40s                 return a + b
 40s     
 40s             def subtract(a, b):
 40s                 """
 40s                 >>> subtract(1, 1)
 40s                 0
 40s                 >>> subtract(0, 2)
 40s                 -2
 40s                 """
 40s                 return a - b
 40s         '''))
 40s E       AttributeError: module 'py' has no attribute 'code'
 40s 
 40s 
/tmp/autopkgtest-lxc.hl72zszt/downtmp/build.oRr/src/tests/test_doctests.py:18: 
AttributeError
 40s ___________________ ERROR at setup of test_doctests[parent] 
____________________
 40s 
 40s testdir = <Testdir local('/tmp/pytest-of-debci/pytest-0/test_doctests4')>
 40s 
 40s     @pytest.fixture
 40s     def tmp_tree_of_tests(testdir):
 40s         """
 40s         Creates a directory structure:
 40s             tmpdir/
 40s                 foo.py
 40s     
 40s         """
 40s     
 40s         utils_package = testdir.mkpydir('utils')
 40s         utils_package.join('__init__.py').write('')
 40s     
 40s >       utils_package.join('foo.py').write(py.code.Source('''
 40s             def add(a, b):
 40s                 """
 40s                 >>> add(1, 1)
 40s                 2
 40s                 >>> add(0, 0)
 40s                 0
 40s                 """
 40s                 return a + b
 40s     
 40s             def subtract(a, b):
 40s                 """
 40s                 >>> subtract(1, 1)
 40s                 0
 40s                 >>> subtract(0, 2)
 40s                 -2
 40s                 """
 40s                 return a - b
 40s         '''))
 40s E       AttributeError: module 'py' has no attribute 'code'
 40s 
 40s 
/tmp/autopkgtest-lxc.hl72zszt/downtmp/build.oRr/src/tests/test_doctests.py:18: 
AttributeError
 40s _________________ ERROR at setup of test_doctests[grandparent] 
_________________
 40s 
 40s testdir = <Testdir local('/tmp/pytest-of-debci/pytest-0/test_doctests5')>
 40s 
 40s     @pytest.fixture
 40s     def tmp_tree_of_tests(testdir):
 40s         """
 40s         Creates a directory structure:
 40s             tmpdir/
 40s                 foo.py
 40s     
 40s         """
 40s     
 40s         utils_package = testdir.mkpydir('utils')
 40s         utils_package.join('__init__.py').write('')
 40s     
 40s >       utils_package.join('foo.py').write(py.code.Source('''
 40s             def add(a, b):
 40s                 """
 40s                 >>> add(1, 1)
 40s                 2
 40s                 >>> add(0, 0)
 40s                 0
 40s                 """
 40s                 return a + b
 40s     
 40s             def subtract(a, b):
 40s                 """
 40s                 >>> subtract(1, 1)
 40s                 0
 40s                 >>> subtract(0, 2)
 40s                 -2
 40s                 """
 40s                 return a - b
 40s         '''))
 40s E       AttributeError: module 'py' has no attribute 'code'
 40s 
 40s 
/tmp/autopkgtest-lxc.hl72zszt/downtmp/build.oRr/src/tests/test_doctests.py:18: 
AttributeError
 40s ____________________ ERROR at setup of test_doctests[none] 
_____________________
 40s 
 40s testdir = <Testdir local('/tmp/pytest-of-debci/pytest-0/test_doctests6')>
 40s 
 40s     @pytest.fixture
 40s     def tmp_tree_of_tests(testdir):
 40s         """
 40s         Creates a directory structure:
 40s             tmpdir/
 40s                 foo.py
 40s     
 40s         """
 40s     
 40s         utils_package = testdir.mkpydir('utils')
 40s         utils_package.join('__init__.py').write('')
 40s     
 40s >       utils_package.join('foo.py').write(py.code.Source('''
 40s             def add(a, b):
 40s                 """
 40s                 >>> add(1, 1)
 40s                 2
 40s                 >>> add(0, 0)
 40s                 0
 40s                 """
 40s                 return a + b
 40s     
 40s             def subtract(a, b):
 40s                 """
 40s                 >>> subtract(1, 1)
 40s                 0
 40s                 >>> subtract(0, 2)
 40s                 -2
 40s                 """
 40s                 return a - b
 40s         '''))
 40s E       AttributeError: module 'py' has no attribute 'code'
 40s 
 40s 
/tmp/autopkgtest-lxc.hl72zszt/downtmp/build.oRr/src/tests/test_doctests.py:18: 
AttributeError
 40s =========================== short test summary info 
============================
 40s ERROR 
tests/test_actual_test_runs.py::test_it_works_with_actual_tests[class-2-5]
 40s ERROR 
tests/test_actual_test_runs.py::test_it_works_with_actual_tests[module-2-5]
 40s ERROR 
tests/test_actual_test_runs.py::test_it_works_with_actual_tests[package-2-5]
 40s ERROR 
tests/test_actual_test_runs.py::test_it_works_with_actual_tests[global-2-5]
 40s ERROR 
tests/test_actual_test_runs.py::test_it_works_with_actual_tests[none-1-1]
 40s ERROR 
tests/test_actual_test_runs.py::test_it_works_with_actual_tests[parent-1-5]
 40s ERROR 
tests/test_actual_test_runs.py::test_it_works_with_actual_tests[grandparent-1-5]
 40s ERROR tests/test_actual_test_runs.py::test_failed_first[global] - 
AttributeEr...
 40s ERROR tests/test_actual_test_runs.py::test_failed_first[package] - 
AttributeE...
 40s ERROR tests/test_actual_test_runs.py::test_failed_first[module] - 
AttributeEr...
 40s ERROR tests/test_actual_test_runs.py::test_failed_first[class] - 
AttributeErr...
 40s ERROR tests/test_actual_test_runs.py::test_failed_first[parent] - 
AttributeEr...
 40s ERROR tests/test_actual_test_runs.py::test_failed_first[grandparent] - 
Attrib...
 40s ERROR tests/test_actual_test_runs.py::test_failed_first[none] - 
AttributeErro...
 40s ERROR tests/test_doctests.py::test_doctests[global] - AttributeError: 
module ...
 40s ERROR tests/test_doctests.py::test_doctests[package] - AttributeError: 
module...
 40s ERROR tests/test_doctests.py::test_doctests[module] - AttributeError: 
module ...
 40s ERROR tests/test_doctests.py::test_doctests[class] - AttributeError: 
module '...
 40s ERROR tests/test_doctests.py::test_doctests[parent] - AttributeError: 
module ...
 40s ERROR tests/test_doctests.py::test_doctests[grandparent] - AttributeError: 
mo...
 40s ERROR tests/test_doctests.py::test_doctests[none] - AttributeError: module 
'p...
 40s ======================== 24 passed, 21 errors in 1.60s 
=========================
 41s autopkgtest [15:12:08]: test python3-pytest-random-order: 
-----------------------]
 41s python3-pytest-random-order FAIL non-zero exit status 1


-----BEGIN PGP SIGNATURE-----

iQGzBAEBCgAdFiEEJvtDgpxjkjCIVtam+C8H+466LVkFAmSlvQYACgkQ+C8H+466
LVli4wv+MKh2GreaVIukhT0b434qsmSW9X4i9ZqA9c7O9ZK1j9YrNYsFJvzbSvLm
vRi2JuJvzzJJaIBnj24//wadt0nuz3ptRxxJfOl00NXHCWZ09wRz+/ndCixwIBdz
OrA6PH/WUGl8UM+vFzC80Mr7bWK+hdF/+DsqH6zSWz3EfkSN38LxHAIqeXDD8pjz
zWOc8pPcs8mmoY72CoHZ5mgM2U/3YgqiCbRWqmHtAraoREEQYqq34oVB7ee71mct
S9TMmbyGDeRnLdTelLNk0dNoH+yHHkNTbpYeMXeE+emB5emWjRnNieuvdlV9GS4V
zIZutbUbt5Yf44Celi+vnTiyRS9pj6pYXpoXGPTDJ/PYhBLW1R7IxiebLvhLTJzI
+fKmiRk8iZ6yOpZwa9URTdyefyMp28+VVstahLUeDKf/1VF99V4ZDQCGxT5z3PKo
9fNi+xHFpDvAoOduV4QczRlNu8L5FcNCRHjph0LgurdC6p5lVVdtnIIWZDKa//MR
TiamdT7X
=e2ST
-----END PGP SIGNATURE-----

Reply via email to