Summary: | dev-python/pyftpdlib-1.5.4: ImportError while importing test module '/var/tmp/portage/dev-python/pyftpdlib-1.5.4/work/pyftpdlib-1.5.4/demo/winnt_ftpd.py'. | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Rolf Eike Beer <eike> |
Component: | Current packages | Assignee: | Python Gentoo Team <python> |
Status: | RESOLVED FIXED | ||
Severity: | normal | Keywords: | TESTFAILURE |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | build.log |
Description
Rolf Eike Beer
2018-07-13 17:03:30 UTC
I don't know why your pytest insists on trying to collect stuff from demo/ I tried emerging v3.2.2 and I can't reproduce that. What happens if you run "py.test --collect-only |& grep -i module" ? Do you see it trying to collect stuff from the demo folder? On my system, it looks like this: <Module 'pyftpdlib/test/test_authorizers.py'> <Module 'pyftpdlib/test/test_filesystems.py'> <Module 'pyftpdlib/test/test_functional.py'> <Module 'pyftpdlib/test/test_functional_ssl.py'> <Module 'pyftpdlib/test/test_ioloop.py'> <Module 'pyftpdlib/test/test_misc.py'> <Module 'pyftpdlib/test/test_servers.py'> chroot /var/tmp/portage/dev-python/pyftpdlib-1.5.3/work/pyftpdlib-1.5.3 # py.test --collect-only |& grep -i module <SpecModule 'setup.py'> <SpecModule 'demo/anti_flood_ftpd.py'> <SpecModule 'demo/basic_ftpd.py'> <SpecModule 'demo/md5_ftpd.py'> <SpecModule 'demo/multi_proc_ftp.py'> <SpecModule 'demo/multi_thread_ftp.py'> <SpecModule 'demo/throttled_ftpd.py'> <SpecModule 'demo/tls_ftpd.py'> <SpecModule 'demo/unix_daemon.py'> <SpecModule 'demo/unix_ftpd.py'> <SpecModule 'docs/conf.py'> <SpecModule 'pyftpdlib/authorizers.py'> <SpecModule 'pyftpdlib/log.py'> <SpecModule 'pyftpdlib/test/runner.py'> <Module 'pyftpdlib/test/test_authorizers.py'> <Module 'pyftpdlib/test/test_filesystems.py'> <Module 'pyftpdlib/test/test_functional.py'> <Module 'pyftpdlib/test/test_functional_ssl.py'> <Module 'pyftpdlib/test/test_ioloop.py'> <Module 'pyftpdlib/test/test_misc.py'> <Module 'pyftpdlib/test/test_servers.py'> <SpecModule 'scripts/print_announce.py'> ImportError while importing test module '/var/tmp/portage/dev-python/pyftpdlib-1.5.3/work/pyftpdlib-1.5.3/demo/winnt_ftpd.py'. Hint: make sure your test modules/packages have valid Python names. demo/winnt_ftpd.py:14: in <module> I found the culptrit: dev-python/pytest-relaxed Description: py.test plugin for relaxed test discovery and organization I'm going to force pytest only run tests from the test folder. The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fd04e3905eecd20ea4f2defd7638563ca0e48eac commit fd04e3905eecd20ea4f2defd7638563ca0e48eac Author: Louis Sautier <sbraz@gentoo.org> AuthorDate: 2018-07-14 14:47:42 +0000 Commit: Louis Sautier <sbraz@gentoo.org> CommitDate: 2018-07-14 14:47:42 +0000 dev-python/pyftpdlib: don't load the relaxed pytest plugin Closes: https://bugs.gentoo.org/661082 Package-Manager: Portage-2.3.42, Repoman-2.3.9 dev-python/pyftpdlib/pyftpdlib-1.5.4.ebuild | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) |