Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
setuptools
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jérome Perrin
setuptools
Commits
c5279751
Commit
c5279751
authored
Oct 14, 2016
by
Jason R. Coombs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Just skip these tests on Python 2.6.
parent
6ef8ff56
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
setuptools/tests/test_egg_info.py
setuptools/tests/test_egg_info.py
+9
-4
No files found.
setuptools/tests/test_egg_info.py
View file @
c5279751
...
...
@@ -63,12 +63,18 @@ class TestEggInfo(object):
})
yield
env
dict_order_fails
=
pytest
.
mark
.
skipif
(
sys
.
version_info
<
(
2
,
7
),
reason
=
"Intermittent failures on Python 2.6"
,
)
@
dict_order_fails
def
test_egg_info_save_version_info_setup_empty
(
self
,
tmpdir_cwd
,
env
):
"""
When the egg_info section is empty or not present, running
save_version_info should add the settings to the setup.cfg
in a deterministic order, consistent with the ordering found
on Python 2.
6 and 2.
7 with PYTHONHASHSEED=0.
on Python 2.7 with PYTHONHASHSEED=0.
"""
setup_cfg
=
os
.
path
.
join
(
env
.
paths
[
'home'
],
'setup.cfg'
)
dist
=
Distribution
()
...
...
@@ -98,13 +104,12 @@ class TestEggInfo(object):
flags
=
re
.
MULTILINE
|
re
.
DOTALL
assert
re
.
search
(
pattern
,
content
,
flags
)
@
dict_order_fails
def
test_egg_info_save_version_info_setup_defaults
(
self
,
tmpdir_cwd
,
env
):
"""
When running save_version_info on an existing setup.cfg
with the 'default' values present from a previous run,
the file should remain unchanged, except on Python 2.6,
where the order of the keys will be changed to match the
order as found in a dictionary of those keys.
the file should remain unchanged.
"""
setup_cfg
=
os
.
path
.
join
(
env
.
paths
[
'home'
],
'setup.cfg'
)
build_files
({
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment