diff options
author | Nadeem Vawda <nadeem.vawda@gmail.com> | 2012-02-13 19:33:51 (GMT) |
---|---|---|
committer | Nadeem Vawda <nadeem.vawda@gmail.com> | 2012-02-13 19:33:51 (GMT) |
commit | c48c16ea3a48d0a55aa3d1fe1a7934b225866f3f (patch) | |
tree | 55f1d3f8208ef5e37121b3467e0c4a70924b6b72 | |
parent | 369cbd744ed06b3e01fe7a2e6a86ea4d85250231 (diff) | |
download | cpython-c48c16ea3a48d0a55aa3d1fe1a7934b225866f3f.zip cpython-c48c16ea3a48d0a55aa3d1fe1a7934b225866f3f.tar.gz cpython-c48c16ea3a48d0a55aa3d1fe1a7934b225866f3f.tar.bz2 |
Issue #13193: Fix distutils.filelist tests to always use / as path separator.
-rw-r--r-- | Lib/distutils/tests/test_filelist.py | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/Lib/distutils/tests/test_filelist.py b/Lib/distutils/tests/test_filelist.py index 1e04077..d86ea44 100644 --- a/Lib/distutils/tests/test_filelist.py +++ b/Lib/distutils/tests/test_filelist.py @@ -1,7 +1,6 @@ """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) |