Commit 573803d0 authored by Jim Fulton's avatar Jim Fulton

rearranged test and added text to make intent clearer.

parent c33f38e2
...@@ -3082,17 +3082,23 @@ def test_buildout_doesnt_keep_adding_itself_to_versions(): ...@@ -3082,17 +3082,23 @@ def test_buildout_doesnt_keep_adding_itself_to_versions():
>>> with open('versions.cfg') as f: >>> with open('versions.cfg') as f:
... versions = f.read() ... versions = f.read()
>>> _ = system(join('bin', 'buildout')) >>> _ = system(join('bin', 'buildout'))
>>> _ = system(join('bin', 'buildout'))
>>> _ = system(join('bin', 'buildout')) On the first run, some pins were added:
>>> with open('versions.cfg') as f:
... versions == f.read()
True
>>> cat('versions.cfg') # doctest: +ELLIPSIS >>> cat('versions.cfg') # doctest: +ELLIPSIS
[versions] [versions]
<BLANKLINE> <BLANKLINE>
# Added by buildout... # Added by buildout...
setuptools = 34.0.3 setuptools = 34.0.3
... ...
>>> _ = system(join('bin', 'buildout'))
>>> _ = system(join('bin', 'buildout'))
Subsequent runs didn't add additional text:
>>> with open('versions.cfg') as f:
... versions == f.read()
True
""" """
if sys.platform == 'win32': if sys.platform == 'win32':
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment