diff options
| author | Anthony Sottile <asottile@umich.edu> | 2019-08-17 19:14:48 -0700 |
|---|---|---|
| committer | Anthony Sottile <asottile@umich.edu> | 2019-08-17 19:18:07 -0700 |
| commit | 43add1d3f5138e38adc4940647cc6eae94fb6123 (patch) | |
| tree | 5be3b39a6b43a82ddf113b948484d0e1b75458e7 /pkg_resources/tests/test_resources.py | |
| parent | 2cd2fdcb69426de4bb9d63d638244f4ae6a1ca27 (diff) | |
| download | python-setuptools-git-43add1d3f5138e38adc4940647cc6eae94fb6123.tar.gz | |
Fixes for python3.10
Diffstat (limited to 'pkg_resources/tests/test_resources.py')
| -rw-r--r-- | pkg_resources/tests/test_resources.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg_resources/tests/test_resources.py b/pkg_resources/tests/test_resources.py index 86afcf74..7063ed3d 100644 --- a/pkg_resources/tests/test_resources.py +++ b/pkg_resources/tests/test_resources.py @@ -116,7 +116,7 @@ class TestDistro: self.checkFooPkg(d) d = Distribution("/some/path") - assert d.py_version == sys.version[:3] + assert d.py_version == '{}.{}'.format(*sys.version_info) assert d.platform is None def testDistroParse(self): |
