aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/tests
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2020-05-16 22:18:25 -0400
committerJason R. Coombs <jaraco@jaraco.com>2020-05-16 22:19:26 -0400
commit39a37c0758f43b130e5163156facffbbe89cf9fa (patch)
treee06380f0eb50d615ce25a40ee6bb50766be0a8df /setuptools/tests
parent55456fe32ab2b5d7a4d476149ba935dbfd6e5fca (diff)
downloadexternal_python_setuptools-39a37c0758f43b130e5163156facffbbe89cf9fa.tar.gz
external_python_setuptools-39a37c0758f43b130e5163156facffbbe89cf9fa.tar.bz2
external_python_setuptools-39a37c0758f43b130e5163156facffbbe89cf9fa.zip
Disable test on Python 2.
Diffstat (limited to 'setuptools/tests')
-rw-r--r--setuptools/tests/test_config.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/setuptools/tests/test_config.py b/setuptools/tests/test_config.py
index 77b853eb..67992c04 100644
--- a/setuptools/tests/test_config.py
+++ b/setuptools/tests/test_config.py
@@ -10,6 +10,7 @@ from mock import patch
from setuptools.dist import Distribution, _Distribution
from setuptools.config import ConfigHandler, read_configuration
from setuptools.extern.six.moves import configparser
+from setuptools.extern import six
from . import py2_only, py3_only
from .textwrap import DALS
@@ -310,6 +311,10 @@ class TestMetadata:
with get_dist(tmpdir) as dist:
assert dist.metadata.version == '2016.11.26'
+ if six.PY2:
+ # static version loading is unsupported on Python 2
+ return
+
config.write(
'[metadata]\n'
'version = attr: fake_package.subpkg_b.mod.VERSION\n'