colcon / colcon-bundle

A colcon extension to create portable application bundles
Apache License 2.0
38 stars 24 forks source link

Fix broken test_bundlefile.py for py3.8 #161

Closed prajakta-gokhale closed 4 years ago

prajakta-gokhale commented 4 years ago

Fixes https://github.com/colcon/colcon-bundle/issues/160

➜ python3.8 -m pytest -v test/test_bundlefile.py
==================================================================================================================== test session starts =====================================================================================================================
platform linux -- Python 3.8.2, pytest-5.4.1, py-1.8.1, pluggy-0.13.1 -- /usr/bin/python3.8
cachedir: .pytest_cache
inifile: setup.cfg
plugins: cov-2.8.1, repeat-0.8.0, rerunfailures-9.0, mock-1.7.1
collected 2 items

test/test_bundlefile.py::TestBundlefile::test_bundlefile PASSED                                                                                                                                                                                        [ 50%]
test/test_bundlefile.py::TestBundlefile::test_bundlefile_metadata_over_4mb PASSED                                                                                                                                                                      [100%]

===================================================================================================================== 2 passed in 0.22s ======================================================================================================================
➜ python3 -m pytest -v test/test_bundlefile.py
##vso[task.logissue type=warning;]The 'junit_family' default value will change to 'xunit2' in pytest 6.0.
Add 'junit_family=legacy' to your pytest.ini file to silence this warning and make your suite compatible.
==================================================================================================================== test session starts =====================================================================================================================
platform linux -- Python 3.6.9, pytest-5.3.2, py-1.8.1, pluggy-0.13.1 -- /usr/bin/python3
cachedir: .pytest_cache
collected 2 items

test_bundlefile PASSED                                                                                                                                                                                                                                 [ 50%]
test_bundlefile_metadata_over_4mb PASSED                                                                                                                                                                                                               [100%]

====================================================================================================================== warnings summary ======================================================================================================================

Signed-off-by: Prajakta Gokhale prajaktg@amazon.com