scripttest icon indicating copy to clipboard operation
scripttest copied to clipboard

1.3.0: pytest warnings

Open kloczek opened this issue 4 years ago • 0 comments

Just normal build, install and test cycle used on building package from non-root account:

  • "setup.py build"
  • "setup.py install --root </install/prefix>"
  • "pytest with PYTHONPATH pointing to setearch and sitelib inside </install/prefix>
+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-scripttest-1.3.0-24.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-scripttest-1.3.0-24.fc35.x86_64/usr/lib/python3.8/site-packages
+ PYTHONDONTWRITEBYTECODE=1
+ /usr/bin/pytest -ra
=========================================================================== test session starts ============================================================================
platform linux -- Python 3.8.9, pytest-6.2.4, py-1.10.0, pluggy-0.13.1
benchmark: 3.4.1 (defaults: timer=time.perf_counter disable_gc=False min_rounds=5 min_time=0.000005 max_time=1.0 calibration_precision=10 warmup=False warmup_iterations=100000)
rootdir: /home/tkloczko/rpmbuild/BUILD/scripttest-1.3.0
plugins: forked-1.3.0, shutil-1.7.0, virtualenv-1.7.0, expect-1.1.0, httpbin-1.0.0, flake8-1.0.7, timeout-1.4.2, betamax-0.8.1, freezegun-0.4.2, case-1.5.3, isort-1.3.0, aspectlib-1.5.2, asyncio-0.15.1, toolbox-0.5, xprocess-0.17.1, aiohttp-0.3.0, checkdocs-2.7.0, mock-3.6.1, rerunfailures-9.1.1, requests-mock-1.9.3, cov-2.12.1, pyfakefs-4.5.0, cases-3.6.1, flaky-3.7.0, hypothesis-6.14.0, benchmark-3.4.1, xdist-2.3.0, Faker-8.8.1, pylama-7.7.1
collected 12 items

. .                                                                                                                                                                  [  9%]
tests/test_string.py ssss....                                                                                                                                        [ 81%]
tests/test_testscript.py ..                                                                                                                                          [100%]

============================================================================= warnings summary =============================================================================
scripttest.py:108
  /home/tkloczko/rpmbuild/BUILD/scripttest-1.3.0/scripttest.py:108: PytestCollectionWarning: cannot collect test class 'TestFileEnvironment' because it has a __init__ constructor (from: tests/test_testscript.py)
    class TestFileEnvironment(object):

-- Docs: https://docs.pytest.org/en/stable/warnings.html
========================================================================= short test summary info ==========================================================================
SKIPPED [1] tests/test_string.py:34: condition: sys.version_info >= (3, 0)
SKIPPED [1] tests/test_string.py:44: condition: sys.version_info >= (3, 0)
SKIPPED [1] tests/test_string.py:54: condition: sys.version_info >= (3, 0)
SKIPPED [1] tests/test_string.py:65: condition: sys.version_info >= (3, 0)
================================================================= 7 passed, 4 skipped, 1 warning in 8.69s ==================================================================

kloczek avatar Jun 23 '21 20:06 kloczek