aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2017-07-13 21:20:02 -0400
committerJason R. Coombs <jaraco@jaraco.com>2017-07-13 21:20:02 -0400
commit295dbf3043da95165683991d71c187c875daa600 (patch)
treed14ed718b6aa0a230db1add43e89fab295f752f1 /setuptools
parent44233b1b8cecc77001dec43a2d86e6955d529f82 (diff)
downloadexternal_python_setuptools-295dbf3043da95165683991d71c187c875daa600.tar.gz
external_python_setuptools-295dbf3043da95165683991d71c187c875daa600.tar.bz2
external_python_setuptools-295dbf3043da95165683991d71c187c875daa600.zip
extract variable for expected_requires.
Diffstat (limited to 'setuptools')
-rw-r--r--setuptools/tests/test_egg_info.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/setuptools/tests/test_egg_info.py b/setuptools/tests/test_egg_info.py
index 1376075c..6358abf0 100644
--- a/setuptools/tests/test_egg_info.py
+++ b/setuptools/tests/test_egg_info.py
@@ -192,10 +192,11 @@ class TestEggInfo(object):
requires_txt = os.path.join(egg_info_dir, 'requires.txt')
with open(requires_txt) as fp:
install_requires = fp.read()
- assert install_requires.lstrip() == DALS('''
- [:python_version < "{sys.version_info[0]}"]
- barbazquux
- ''').format(sys=sys)
+ expected_requires = DALS('''
+ [:python_version < "{sys.version_info[0]}"]
+ barbazquux
+ ''').format(sys=sys)
+ assert install_requires.lstrip() == expected_requires
assert glob.glob(os.path.join(env.paths['lib'], 'barbazquux*')) == []
def test_setup_requires_with_markers(self, tmpdir_cwd, env):