diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2017-07-13 21:20:02 -0400 |
|---|---|---|
| committer | Jason R. Coombs <jaraco@jaraco.com> | 2017-07-13 21:20:02 -0400 |
| commit | 295dbf3043da95165683991d71c187c875daa600 (patch) | |
| tree | d14ed718b6aa0a230db1add43e89fab295f752f1 | |
| parent | 44233b1b8cecc77001dec43a2d86e6955d529f82 (diff) | |
| download | external_python_setuptools-295dbf3043da95165683991d71c187c875daa600.tar.gz external_python_setuptools-295dbf3043da95165683991d71c187c875daa600.tar.bz2 external_python_setuptools-295dbf3043da95165683991d71c187c875daa600.zip | |
extract variable for expected_requires.
| -rw-r--r-- | setuptools/tests/test_egg_info.py | 9 |
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): |
