# HG changeset patch # User cmlenz # Date 1270625639 0 # Node ID 5c5a0f3c93fa197a8b1484afe23b98e4b6b323d6 # Parent f99a5c8e79b0d2156ca8134a29f85d10247b04da Rename the ''CVS'' directory in the test data to ''ignored'', as quite a number of tools are configured or even hardcoded to ignore CVS directories. For example, I couldn't find a way to include the directory in the sdist tarball. diff --git a/babel/messages/tests/data/mapping.cfg b/babel/messages/tests/data/mapping.cfg --- a/babel/messages/tests/data/mapping.cfg +++ b/babel/messages/tests/data/mapping.cfg @@ -1,5 +1,5 @@ -# Ignore CVS Dirs -[ignore: **/CVS/**.*] +# Ignore directory +[ignore: **/ignored/**.*] # Extraction from Python source files [python: **.py] diff --git a/babel/messages/tests/data/project/CVS/a_test_file.txt b/babel/messages/tests/data/project/ignored/a_test_file.txt rename from babel/messages/tests/data/project/CVS/a_test_file.txt rename to babel/messages/tests/data/project/ignored/a_test_file.txt diff --git a/babel/messages/tests/data/project/CVS/an_example.txt b/babel/messages/tests/data/project/ignored/an_example.txt rename from babel/messages/tests/data/project/CVS/an_example.txt rename to babel/messages/tests/data/project/ignored/an_example.txt diff --git a/babel/messages/tests/data/project/CVS/this_wont_normally_be_here.py b/babel/messages/tests/data/project/ignored/this_wont_normally_be_here.py rename from babel/messages/tests/data/project/CVS/this_wont_normally_be_here.py rename to babel/messages/tests/data/project/ignored/this_wont_normally_be_here.py diff --git a/babel/messages/tests/frontend.py b/babel/messages/tests/frontend.py --- a/babel/messages/tests/frontend.py +++ b/babel/messages/tests/frontend.py @@ -141,7 +141,7 @@ msgstr[0] "" msgstr[1] "" -#: project/CVS/this_wont_normally_be_here.py:11 +#: project/ignored/this_wont_normally_be_here.py:11 msgid "FooBar" msgid_plural "FooBars" msgstr[0] "" @@ -208,8 +208,8 @@ def test_extraction_with_mapping_dict(self): self.dist.message_extractors = { 'project': [ - ('**/CVS/**.*', 'ignore', None), - ('**.py', 'python', None), + ('**/ignored/**.*', 'ignore', None), + ('**.py', 'python', None), ] } self.cmd.copyright_holder = 'FooBar, Inc.' @@ -599,7 +599,7 @@ msgstr[0] "" msgstr[1] "" -#: project/CVS/this_wont_normally_be_here.py:11 +#: project/ignored/this_wont_normally_be_here.py:11 msgid "FooBar" msgid_plural "FooBars" msgstr[0] ""