Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 585710 Details for
Bug 691448
dev-python/apipkg-1.4 fails tests - RemovedInPytest4Warning: pytest/tmpdir_factory.ensuretemp is deprecated, please use the tmp_path fixture or tmp_path_factory.mktemp
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
dev-python/apipkg-1.4:20190804-194701.log
apipkg-1.4:20190804-194701.log (text/plain), 13.99 KB, created by
eroen
on 2019-08-04 19:51:30 UTC
(
hide
)
Description:
dev-python/apipkg-1.4:20190804-194701.log
Filename:
MIME Type:
Creator:
eroen
Created:
2019-08-04 19:51:30 UTC
Size:
13.99 KB
patch
obsolete
> * Package: dev-python/apipkg-1.4 > * Repository: gentoo > * Maintainer: python@gentoo.org > * USE: abi_x86_64 amd64 elibc_glibc kernel_linux python_targets_python2_7 python_targets_python3_5 python_targets_python3_6 python_targets_python3_7 test userland_GNU > * FEATURES: compressdebug installsources network-sandbox preserve-libs sandbox splitdebug test userpriv usersandbox >>>> Unpacking source... >>>> Unpacking apipkg-1.4.tar.gz to /var/tmp/portage/dev-python/apipkg-1.4/work >>>> Source unpacked in /var/tmp/portage/dev-python/apipkg-1.4/work >>>> Preparing source in /var/tmp/portage/dev-python/apipkg-1.4/work/apipkg-1.4 ... >>>> Source prepared. >>>> Configuring source in /var/tmp/portage/dev-python/apipkg-1.4/work/apipkg-1.4 ... >>>> Source configured. >>>> Compiling source in /var/tmp/portage/dev-python/apipkg-1.4/work/apipkg-1.4 ... > * python2_7: running distutils-r1_run_phase distutils-r1_python_compile >python2.7 setup.py build >running build >running build_py >copying apipkg.py -> /var/tmp/portage/dev-python/apipkg-1.4/work/apipkg-1.4-python2_7/lib >warning: build_py: byte-compiling is disabled, skipping. > > * python3_5: running distutils-r1_run_phase distutils-r1_python_compile >python3.5 setup.py build >running build >running build_py >copying apipkg.py -> /var/tmp/portage/dev-python/apipkg-1.4/work/apipkg-1.4-python3_5/lib >warning: build_py: byte-compiling is disabled, skipping. > > * python3_6: running distutils-r1_run_phase distutils-r1_python_compile >python3.6 setup.py build >running build >running build_py >copying apipkg.py -> /var/tmp/portage/dev-python/apipkg-1.4/work/apipkg-1.4-python3_6/lib >warning: build_py: byte-compiling is disabled, skipping. > > * python3_7: running distutils-r1_run_phase distutils-r1_python_compile >python3.7 setup.py build -j 4 >running build >running build_py >copying apipkg.py -> /var/tmp/portage/dev-python/apipkg-1.4/work/apipkg-1.4-python3_7/lib >warning: build_py: byte-compiling is disabled, skipping. > >>>> Source compiled. >>>> Test phase: dev-python/apipkg-1.4 > * python2_7: running distutils-r1_run_phase python_test >============================================= test session starts ============================================== >platform linux2 -- Python 2.7.16, pytest-4.5.0, py-1.5.4, pluggy-0.12.0 >hypothesis profile 'default' -> database=DirectoryBasedExampleDatabase('/var/tmp/portage/dev-python/apipkg-1.4/work/apipkg-1.4/.hypothesis/examples') >rootdir: /var/tmp/portage/dev-python/apipkg-1.4/work/apipkg-1.4 >plugins: localserver-0.3.7, forked-0.2, shutil-1.2.11, virtualenv-1.2.11, backports.unittest-mock-1.4, hypothesis-4.15.0, xprocess-0.12.1, flake8-0.9.1, xdist-1.23.2, cov-2.5.1 >collected 37 items > >test_apipkg.py EEEEEE............................... [100%] > >==================================================== ERRORS ==================================================== >_______________________________ ERROR at setup of TestRealModule.test_realmodule _______________________________ > >cls = <class test_apipkg.TestRealModule at 0x7fda6240cb48> > > def setup_class(cls): >> cls.tmpdir = py.test.ensuretemp('test_apipkg') > >test_apipkg.py:16: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = TempdirFactory(_tmppath_factory=TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7fda6245fe90>, _basetemp=None)) >string = 'test_apipkg', dir = 1 > > def ensuretemp(self, string, dir=1): > """ (deprecated) return temporary directory path with > the given string as the trailing part. It is usually > better to use the 'tmpdir' function argument which > provides an empty unique-per-test-invocation directory > and is guaranteed to be empty. > """ > # py.log._apiwarn(">1.1", "use tmpdir function argument") > from .deprecated import PYTEST_ENSURETEMP > >> warnings.warn(PYTEST_ENSURETEMP, stacklevel=2) >E RemovedInPytest4Warning: pytest/tmpdir_factory.ensuretemp is deprecated, >E please use the tmp_path fixture or tmp_path_factory.mktemp > >/usr/lib64/python2.7/site-packages/_pytest/tmpdir.py:105: RemovedInPytest4Warning >____________________________ ERROR at setup of TestRealModule.test_realmodule_repr _____________________________ > >cls = <class test_apipkg.TestRealModule at 0x7fda6240cb48> > > def setup_class(cls): >> cls.tmpdir = py.test.ensuretemp('test_apipkg') > >test_apipkg.py:16: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = TempdirFactory(_tmppath_factory=TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7fda6245fe90>, _basetemp=None)) >string = 'test_apipkg', dir = 1 > > def ensuretemp(self, string, dir=1): > """ (deprecated) return temporary directory path with > the given string as the trailing part. It is usually > better to use the 'tmpdir' function argument which > provides an empty unique-per-test-invocation directory > and is guaranteed to be empty. > """ > # py.log._apiwarn(">1.1", "use tmpdir function argument") > from .deprecated import PYTEST_ENSURETEMP > >> warnings.warn(PYTEST_ENSURETEMP, stacklevel=2) >E RemovedInPytest4Warning: pytest/tmpdir_factory.ensuretemp is deprecated, >E please use the tmp_path fixture or tmp_path_factory.mktemp > >/usr/lib64/python2.7/site-packages/_pytest/tmpdir.py:105: RemovedInPytest4Warning >____________________________ ERROR at setup of TestRealModule.test_realmodule_from _____________________________ > >cls = <class test_apipkg.TestRealModule at 0x7fda6240cb48> > > def setup_class(cls): >> cls.tmpdir = py.test.ensuretemp('test_apipkg') > >test_apipkg.py:16: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = TempdirFactory(_tmppath_factory=TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7fda6245fe90>, _basetemp=None)) >string = 'test_apipkg', dir = 1 > > def ensuretemp(self, string, dir=1): > """ (deprecated) return temporary directory path with > the given string as the trailing part. It is usually > better to use the 'tmpdir' function argument which > provides an empty unique-per-test-invocation directory > and is guaranteed to be empty. > """ > # py.log._apiwarn(">1.1", "use tmpdir function argument") > from .deprecated import PYTEST_ENSURETEMP > >> warnings.warn(PYTEST_ENSURETEMP, stacklevel=2) >E RemovedInPytest4Warning: pytest/tmpdir_factory.ensuretemp is deprecated, >E please use the tmp_path fixture or tmp_path_factory.mktemp > >/usr/lib64/python2.7/site-packages/_pytest/tmpdir.py:105: RemovedInPytest4Warning >___________________________ ERROR at setup of TestRealModule.test_realmodule__all__ ____________________________ > >cls = <class test_apipkg.TestRealModule at 0x7fda6240cb48> > > def setup_class(cls): >> cls.tmpdir = py.test.ensuretemp('test_apipkg') > >test_apipkg.py:16: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = TempdirFactory(_tmppath_factory=TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7fda6245fe90>, _basetemp=None)) >string = 'test_apipkg', dir = 1 > > def ensuretemp(self, string, dir=1): > """ (deprecated) return temporary directory path with > the given string as the trailing part. It is usually > better to use the 'tmpdir' function argument which > provides an empty unique-per-test-invocation directory > and is guaranteed to be empty. > """ > # py.log._apiwarn(">1.1", "use tmpdir function argument") > from .deprecated import PYTEST_ENSURETEMP > >> warnings.warn(PYTEST_ENSURETEMP, stacklevel=2) >E RemovedInPytest4Warning: pytest/tmpdir_factory.ensuretemp is deprecated, >E please use the tmp_path fixture or tmp_path_factory.mktemp > >/usr/lib64/python2.7/site-packages/_pytest/tmpdir.py:105: RemovedInPytest4Warning >_________________________ ERROR at setup of TestRealModule.test_realmodule_dict_import _________________________ > >cls = <class test_apipkg.TestRealModule at 0x7fda6240cb48> > > def setup_class(cls): >> cls.tmpdir = py.test.ensuretemp('test_apipkg') > >test_apipkg.py:16: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = TempdirFactory(_tmppath_factory=TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7fda6245fe90>, _basetemp=None)) >string = 'test_apipkg', dir = 1 > > def ensuretemp(self, string, dir=1): > """ (deprecated) return temporary directory path with > the given string as the trailing part. It is usually > better to use the 'tmpdir' function argument which > provides an empty unique-per-test-invocation directory > and is guaranteed to be empty. > """ > # py.log._apiwarn(">1.1", "use tmpdir function argument") > from .deprecated import PYTEST_ENSURETEMP > >> warnings.warn(PYTEST_ENSURETEMP, stacklevel=2) >E RemovedInPytest4Warning: pytest/tmpdir_factory.ensuretemp is deprecated, >E please use the tmp_path fixture or tmp_path_factory.mktemp > >/usr/lib64/python2.7/site-packages/_pytest/tmpdir.py:105: RemovedInPytest4Warning >___________________________ ERROR at setup of TestRealModule.test_realmodule___doc__ ___________________________ > >cls = <class test_apipkg.TestRealModule at 0x7fda6240cb48> > > def setup_class(cls): >> cls.tmpdir = py.test.ensuretemp('test_apipkg') > >test_apipkg.py:16: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = TempdirFactory(_tmppath_factory=TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7fda6245fe90>, _basetemp=None)) >string = 'test_apipkg', dir = 1 > > def ensuretemp(self, string, dir=1): > """ (deprecated) return temporary directory path with > the given string as the trailing part. It is usually > better to use the 'tmpdir' function argument which > provides an empty unique-per-test-invocation directory > and is guaranteed to be empty. > """ > # py.log._apiwarn(">1.1", "use tmpdir function argument") > from .deprecated import PYTEST_ENSURETEMP > >> warnings.warn(PYTEST_ENSURETEMP, stacklevel=2) >E RemovedInPytest4Warning: pytest/tmpdir_factory.ensuretemp is deprecated, >E please use the tmp_path fixture or tmp_path_factory.mktemp > >/usr/lib64/python2.7/site-packages/_pytest/tmpdir.py:105: RemovedInPytest4Warning >=============================================== warnings summary =============================================== >/usr/lib64/python2.7/site-packages/_pytest/config/__init__.py:781 > /usr/lib64/python2.7/site-packages/_pytest/config/__init__.py:781: PytestAssertRewriteWarning: Module already imported so cannot be rewritten: backports > self._mark_plugins_for_rewrite(hook) > >test_apipkg.py::test_error_loading_one_element > /var/tmp/portage/dev-python/apipkg-1.4/work/apipkg-1.4/test_apipkg.py:318: PytestDeprecationWarning: raises(..., 'code(as_a_string)') is deprecated, use the context manager form or use `exec()` directly > > See https://docs.pytest.org/en/latest/deprecations.html#raises-warns-exec > py.test.raises(ImportError, 'errorloading1.x') > >test_apipkg.py::test_error_loading_one_element > /var/tmp/portage/dev-python/apipkg-1.4/work/apipkg-1.4/test_apipkg.py:319: PytestDeprecationWarning: raises(..., 'code(as_a_string)') is deprecated, use the context manager form or use `exec()` directly > > See https://docs.pytest.org/en/latest/deprecations.html#raises-warns-exec > py.test.raises(ImportError, 'errorloading1.x') > >test_apipkg.py::test_aliasmodule_proxy_methods > /var/tmp/portage/dev-python/apipkg-1.4/work/apipkg-1.4/test_apipkg.py:492: PytestDeprecationWarning: raises(..., 'code(as_a_string)') is deprecated, use the context manager form or use `exec()` directly > > See https://docs.pytest.org/en/latest/deprecations.html#raises-warns-exec > py.test.raises(AttributeError, "orig.doit") > >-- Docs: https://docs.pytest.org/en/latest/warnings.html >================================ 31 passed, 4 warnings, 6 error in 0.68 seconds ================================ > * ERROR: dev-python/apipkg-1.4::gentoo failed (test phase): > * Tests fail under python2.7 > * > * Call stack: > * ebuild.sh, line 125: Called src_test > * environment, line 3562: Called distutils-r1_src_test > * environment, line 978: Called _distutils-r1_run_foreach_impl 'python_test' > * environment, line 356: Called python_foreach_impl 'distutils-r1_run_phase' 'python_test' > * environment, line 3090: Called multibuild_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_test' > * environment, line 2263: Called _multibuild_run '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_test' > * environment, line 2261: Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'python_test' > * environment, line 636: Called distutils-r1_run_phase 'python_test' > * environment, line 909: Called python_test > * environment, line 3464: Called die > * The specific snippet of code: > * py.test test_apipkg.py || die "Tests fail under ${EPYTHON}" > * > * If you need support, post the output of `emerge --info '=dev-python/apipkg-1.4::gentoo'`, > * the complete build log and the output of `emerge -pqv '=dev-python/apipkg-1.4::gentoo'`. > * The complete build log is located at '/var/log/portage/build/dev-python/apipkg-1.4:20190804-194701.log'. > * For convenience, a symlink to the build log is located at '/var/tmp/portage/dev-python/apipkg-1.4/temp/build.log'. > * The ebuild environment file is located at '/var/tmp/portage/dev-python/apipkg-1.4/temp/environment'. > * Working directory: '/var/tmp/portage/dev-python/apipkg-1.4/work/apipkg-1.4' > * S: '/var/tmp/portage/dev-python/apipkg-1.4/work/apipkg-1.4'
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 691448
: 585710