Bug#889843: [Python-modules-team] Bug#889843: nose2 FTBFS: ERROR: test_can_discover_test_modules_in_zipped_eggs (nose2.tests.functional.test_eggdiscovery_loader.EggDiscoveryFunctionalTest)

2018-02-07 Thread Adrian Bunk
On Wed, Feb 07, 2018 at 10:16:21PM +0100, Pierre-Elliott Bécue wrote:
> Le 7 février 2018 19:37:43 GMT+01:00, Adrian Bunk  a écrit :
> >Source: nose2
> >Version: 0.7.3-2
> >Severity: serious
>...
> Not sure about the severity but i'll let it as its for now.

A FTBFS that would also happen on the buildds is always an RC bug.

It did FTBFS in reproducible and also when I tried locally.

> Cheers ! 

cu
Adrian

-- 

   "Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
   "Only a promise," Lao Er said.
   Pearl S. Buck - Dragon Seed



Bug#889843: [Python-modules-team] Bug#889843: nose2 FTBFS: ERROR: test_can_discover_test_modules_in_zipped_eggs (nose2.tests.functional.test_eggdiscovery_loader.EggDiscoveryFunctionalTest)

2018-02-07 Thread Pierre-Elliott Bécue
Le 7 février 2018 19:37:43 GMT+01:00, Adrian Bunk  a écrit :
>Source: nose2
>Version: 0.7.3-2
>Severity: serious
>
>Some recent change in unstable makes nose2 FTBFS:
>
>https://tests.reproducible-builds.org/debian/history/nose2.html
>https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/nose2.html
>
>...
>==
>ERROR: test_can_discover_test_modules_in_zipped_eggs
>(nose2.tests.functional.test_eggdiscovery_loader.EggDiscoveryFunctionalTest)
>--
>Traceback (most recent call last):
>File "nose2/tests/functional/test_eggdiscovery_loader.py", line 38, in
>test_can_discover_test_modules_in_zipped_eggs
>self.assertTestRunOutputMatches(proc, stderr='FAILED \(failures=5,
>errors=1, skipped=1\)')
>  File "nose2/tests/_common.py", line 82, in assertTestRunOutputMatches
>cmd_stdout, cmd_stderr = proc.communicate()
>  File "nose2/tests/_common.py", line 227, in communicate
>**self.kwargs)
>  File "nose2/main.py", line 306, in discover
>return main(*args, **kwargs)
>  File "nose2/main.py", line 100, in __init__
>super(PluggableTestProgram, self).__init__(**kw)
>  File "/usr/lib/python2.7/unittest/main.py", line 94, in __init__
>self.parseArgs(argv)
>  File "nose2/main.py", line 133, in parseArgs
>self.createTests()
>  File "nose2/main.py", line 258, in createTests
>self.testNames, self.module)
>  File "nose2/loader.py", line 68, in loadTestsFromNames
>for name in event.names]
>  File "nose2/loader.py", line 83, in loadTestsFromName
>result = self.session.hooks.loadTestsFromName(event)
>  File "nose2/events.py", line 225, in __call__
>result = getattr(plugin, self.method)(event)
>File "nose2/plugins/loader/eggdiscovery.py", line 41, in
>loadTestsFromName
>return discovery.Discoverer.loadTestsFromName(self, event)
>File "nose2/plugins/loader/discovery.py", line 84, in loadTestsFromName
>self._find_tests_in_module(event, module, top_level_dir))
>File "nose2/plugins/loader/discovery.py", line 229, in
>_find_tests_in_module
>event, full_path, top_level_dir):
>File "nose2/plugins/loader/eggdiscovery.py", line 78, in
>_find_tests_in_dir
>event, modname, dist):
>File "nose2/plugins/loader/eggdiscovery.py", line 62, in
>_find_tests_in_egg_dir
>for test in self._find_tests_in_egg_dir(event, entry_path, dist):
>File "nose2/plugins/loader/eggdiscovery.py", line 62, in
>_find_tests_in_egg_dir
>for test in self._find_tests_in_egg_dir(event, entry_path, dist):
>File "nose2/plugins/loader/eggdiscovery.py", line 62, in
>_find_tests_in_egg_dir
>for test in self._find_tests_in_egg_dir(event, entry_path, dist):
>...
>nose2.plugins.loader.eggdiscovery: DEBUG: find in egg dir
>/build/1st/nose2-0.7.3/nose2/tests/functional/support/scenario/tests_in_zipped_eggs/pkgegg-0.0.0-py2.7.egg
>pkgegg/test/ (pkgegg)
>nose2.plugins.loader.eggdiscovery: DEBUG: find in egg dir
>/build/1st/nose2-0.7.3/nose2/tests/functional/support/scenario/tests_in_zipped_eggs/pkgegg-0.0.0-py2.7.egg
>pkgegg/test/ (pkgegg)
>- >> end captured logging << -
>--
>Ran 246 tests in 139.913s
>
>FAILED (errors=1, skipped=1)
>E: pybuild pybuild:283: test: plugin custom failed with: exit code=1:
>python2.7 -m nose2.__main__ -v
>dh_auto_test: pybuild --test -i python{version} -p 2.7 --system=custom
>"--test-args={interpreter} -m nose2.__main__ -v" returned exit code 13
>debian/rules:35: recipe for target 'override_dh_auto_test' failed
>make[1]: *** [override_dh_auto_test] Error 25
Control: tags -1 +upstream
Control: forwarded -1 https://github.com/nose-devs/nose2/issues/388

Thanks for reporting it.

Not sure about the severity but i'll let it as its for now.

Cheers ! 
-- 
PEB