Tests fail due to change in supported versions

Bug #1901127 reported by Eli Schwartz
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pkginfo
Fix Released
Undecided
Tres Seaver

Bug Description

Due to commit https://bazaar.launchpad.net/~tseaver/pkginfo/trunk/revision/174

FAIL: test_w_module_and_metadata_version (pkginfo.tests.test_utils.Test_get_metadata)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build/python-pkginfo/src/pkginfo-1.6.0/pkginfo/tests/test_utils.py", line 127, in test_w_module_and_metadata_version
    _checkClassifiers(self, dist)
  File "/build/python-pkginfo/src/pkginfo-1.6.0/pkginfo/tests/__init__.py", line 18, in _checkClassifiers
    testcase.assertEqual(list(installed.classifiers),
AssertionError: Lists differ: ['Int[184 chars]:: 3.5', 'Programming Language :: Python :: 3.[311 chars]ion'] != ['Int[184 chars]:: 3.4', 'Programming Language :: Python :: 3.[311 chars]ion']

First differing element 4:
'Programming Language :: Python :: 3.5'
'Programming Language :: Python :: 3.4'

  ['Intended Audience :: Developers',
   'License :: OSI Approved :: MIT License',
   'Operating System :: OS Independent',
   'Programming Language :: Python :: 2.7',
+ 'Programming Language :: Python :: 3.4',
   'Programming Language :: Python :: 3.5',
   'Programming Language :: Python :: 3.6',
   'Programming Language :: Python :: 3.7',
- 'Programming Language :: Python :: 3.8',
   'Programming Language :: Python :: Implementation :: CPython',
   'Programming Language :: Python :: Implementation :: PyPy',
   'Topic :: Software Development :: Libraries :: Python Modules',
   'Topic :: System :: Software Distribution']

======================================================================
FAIL: test_w_package_name_and_metadata_version (pkginfo.tests.test_utils.Test_get_metadata)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build/python-pkginfo/src/pkginfo-1.6.0/pkginfo/tests/test_utils.py", line 143, in test_w_package_name_and_metadata_version
    _checkClassifiers(self, dist)
  File "/build/python-pkginfo/src/pkginfo-1.6.0/pkginfo/tests/__init__.py", line 18, in _checkClassifiers
    testcase.assertEqual(list(installed.classifiers),
AssertionError: Lists differ: ['Int[184 chars]:: 3.5', 'Programming Language :: Python :: 3.[311 chars]ion'] != ['Int[184 chars]:: 3.4', 'Programming Language :: Python :: 3.[311 chars]ion']

First differing element 4:
'Programming Language :: Python :: 3.5'
'Programming Language :: Python :: 3.4'

  ['Intended Audience :: Developers',
   'License :: OSI Approved :: MIT License',
   'Operating System :: OS Independent',
   'Programming Language :: Python :: 2.7',
+ 'Programming Language :: Python :: 3.4',
   'Programming Language :: Python :: 3.5',
   'Programming Language :: Python :: 3.6',
   'Programming Language :: Python :: 3.7',
- 'Programming Language :: Python :: 3.8',
   'Programming Language :: Python :: Implementation :: CPython',
   'Programming Language :: Python :: Implementation :: PyPy',
   'Topic :: Software Development :: Libraries :: Python Modules',
   'Topic :: System :: Software Distribution']

----------------------------------------------------------------------
Ran 156 tests in 0.196s

FAILED (failures=2)

The hardcoded version of the metadat ain tests/__init__.py was not kept in sync. Not sure how the tests were run. :/

Revision history for this message
Tres Seaver (tseaver) wrote :
Changed in pkginfo:
assignee: nobody → Tres Seaver (tseaver)
status: New → Fix Committed
Tres Seaver (tseaver)
Changed in pkginfo:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.