Rev 3479: Rename UnicodeFilename => UnicodeFilenameFeature in http://bzr.arbash-meinel.com/branches/bzr/jam-integration
John Arbash Meinel
john at arbash-meinel.com
Fri Jun 6 14:31:07 BST 2008
At http://bzr.arbash-meinel.com/branches/bzr/jam-integration
------------------------------------------------------------
revno: 3479
revision-id: john at arbash-meinel.com-20080606133030-9cnvpyem4mnplg8k
parent: john at arbash-meinel.com-20080605210642-zoc3nelx84xmsxuf
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: jam-integration
timestamp: Fri 2008-06-06 08:30:30 -0500
message:
Rename UnicodeFilename => UnicodeFilenameFeature
-------------- next part --------------
=== modified file 'bzrlib/tests/__init__.py'
--- a/bzrlib/tests/__init__.py 2008-06-05 21:06:42 +0000
+++ b/bzrlib/tests/__init__.py 2008-06-06 13:30:30 +0000
@@ -3062,7 +3062,7 @@
OsFifoFeature = _OsFifoFeature()
-class _UnicodeFilename(Feature):
+class _UnicodeFilenameFeature(Feature):
"""Does the filesystem support Unicode filenames?"""
def _probe(self):
@@ -3079,7 +3079,7 @@
# for some reason.
return True
-UnicodeFilename = _UnicodeFilename()
+UnicodeFilenameFeature = _UnicodeFilenameFeature()
class TestScenarioApplier(object):
=== modified file 'bzrlib/tests/test_diff.py'
--- a/bzrlib/tests/test_diff.py 2008-06-05 21:06:42 +0000
+++ b/bzrlib/tests/test_diff.py 2008-06-06 13:30:30 +0000
@@ -519,7 +519,7 @@
is a binary file in the diff.
"""
# See https://bugs.launchpad.net/bugs/110092.
- self.requireFeature(tests.UnicodeFilename)
+ self.requireFeature(tests.UnicodeFilenameFeature)
# This bug isn't triggered with cStringIO.
from StringIO import StringIO
@@ -544,7 +544,7 @@
def test_unicode_filename(self):
"""Test when the filename are unicode."""
- self.requireFeature(tests.UnicodeFilename)
+ self.requireFeature(tests.UnicodeFilenameFeature)
alpha, omega = u'\u03b1', u'\u03c9'
autf8, outf8 = alpha.encode('utf8'), omega.encode('utf8')
=== modified file 'bzrlib/tests/test_msgeditor.py'
--- a/bzrlib/tests/test_msgeditor.py 2008-06-05 21:06:42 +0000
+++ b/bzrlib/tests/test_msgeditor.py 2008-06-06 13:30:30 +0000
@@ -258,7 +258,7 @@
self.assertFileEqual(expected, msgfilename)
def test__create_temp_file_with_commit_template_in_unicode_dir(self):
- self.requireFeature(tests.UnicodeFilename)
+ self.requireFeature(tests.UnicodeFilenameFeature)
if hasattr(self, 'info'):
os.mkdir(self.info['directory'])
os.chdir(self.info['directory'])
=== modified file 'bzrlib/tests/test_selftest.py'
--- a/bzrlib/tests/test_selftest.py 2008-06-05 21:06:42 +0000
+++ b/bzrlib/tests/test_selftest.py 2008-06-06 13:30:30 +0000
@@ -1052,10 +1052,10 @@
class TestUnicodeFilenameFeature(TestCase):
def test_probe_passes(self):
- """UnicodeFilename._probe passes."""
+ """UnicodeFilenameFeature._probe passes."""
# We can't test much more than that because the behaviour depends
# on the platform.
- tests.UnicodeFilename._probe()
+ tests.UnicodeFilenameFeature._probe()
class TestRunner(TestCase):
More information about the bazaar-commits
mailing list