Windows-specific case insensitive globbing tests fail on Mac OSX
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Fix Released
|
Wishlist
|
Martin Packman |
Bug Description
Two tests related to case insensitive globbing in win32utils fail on the Mac babune builders:
Traceback (most recent call last):
...
File ".../bzrlib/
[[u'A?'], [u'a1', u'a2']],
File ".../bzrlib/
self.
AssertionError: pattern [u'A?']
not equal:
a = [u'a1', u'a2']
b = [u'A?']
Traceback (most recent call last):
...
File ".../bzrlib/
self.
File ".../bzrlib/
self.
AssertionError: not equal:
a = [u'A/b.c']
b = [u'A/B*']
Basically the globs are not being expanded because the glob module ends up defering to os.path.normcase, which as documented "On Unix and Mac OS X, this returns the path unchanged":
<http://
As these are tests for code that will otherwise never be run on non-windows platforms, and doesn't run on other nixes as they don't have the case insensitive filesystem feature, just making the skip clause more accurate is probably the most sensible fix.
Related branches
- Vincent Ladeuil: Approve
- John A Meinel: Approve
-
Diff: 22 lines (+4/-2)1 file modifiedbzrlib/tests/test_win32utils.py (+4/-2)
Changed in bzr: | |
importance: | Undecided → Wishlist |
status: | New → Confirmed |
tags: | added: babune selftest |
summary: |
- Windows-specific casw insensitive globbing tests fail on Mac OSX + Windows-specific case insensitive globbing tests fail on Mac OSX |
Changed in bzr: | |
milestone: | none → 2.3b5 |
assignee: | nobody → Martin [gz] (gz) |
status: | Confirmed → Fix Released |