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
0dcd7425
Commit
0dcd7425
authored
Feb 13, 2012
by
Nadeem Vawda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #13193: Fix distutils.filelist tests to always use / as path separator.
parent
2c62a97a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
13 deletions
+11
-13
tests/test_filelist.py
tests/test_filelist.py
+11
-13
No files found.
tests/test_filelist.py
View file @
0dcd7425
"""Tests for distutils.filelist."""
import
re
import
unittest
from
os.path
import
join
from
distutils
import
debug
from
distutils.log
import
WARN
from
distutils.errors
import
DistutilsTemplateError
...
...
@@ -54,15 +53,15 @@ class FileListTestCase(support.LoggingSilencer,
# simulated file list
file_list.allfiles = ['
foo
.
tmp
', '
ok
', '
xo
', '
four
.
txt
',
join('
global
', '
one
.
txt
')
,
join('
global
', '
two
.
txt
')
,
join('
global
', '
files
.
x
')
,
join('
global
', '
here
.
tmp
')
,
join('f', '
o
', '
f
.
oo
')
,
join('
dir
', '
graft
-
one
')
,
join('
dir
', '
dir2
', '
graft2
')
,
join('
dir3
', '
ok
')
,
join('
dir3
', '
sub
', '
ok
.
txt
')
,
'
global
/
one
.
txt
'
,
'
global
/
two
.
txt
'
,
'
global
/
files
.
x
'
,
'
global
/
here
.
tmp
'
,
'
f
/
o
/
f
.
oo
'
,
'
dir
/
graft
-
one
'
,
'
dir
/
dir2
/
graft2
'
,
'
dir3
/
ok
'
,
'
dir3
/
sub
/
ok
.
txt
'
,
]
for line in MANIFEST_IN.split('
\
n
'):
...
...
@@ -70,9 +69,8 @@ class FileListTestCase(support.LoggingSilencer,
continue
file_list.process_template_line(line)
wanted = ['
ok
', '
four
.
txt
', join('
global
', '
one
.
txt
'),
join('
global
', '
two
.
txt
'), join('f', '
o
', '
f
.
oo
'),
join('
dir
', '
graft
-
one
'), join('
dir
', '
dir2
', '
graft2
')]
wanted = ['
ok
', '
four
.
txt
', '
global
/
one
.
txt
', '
global
/
two
.
txt
',
'
f
/
o
/
f
.
oo
', '
dir
/
graft
-
one
', '
dir
/
dir2
/
graft2
']
self.assertEqual(file_list.files, wanted)
...
...
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