Merge pull request #577 from tahoe-lafs/3007.fix-latin-1-locale

Fix a magic-folder test in Latin 1 (and likely other) locale

Fixes: ticket:3007
This commit is contained in:
Jean-Paul Calderone 2019-03-21 09:27:21 -04:00 committed by GitHub
commit bcd5fcbffb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 1 deletions

View File

@ -29,6 +29,8 @@ workflows:
- "lint" - "lint"
- "deprecations" - "deprecations"
- "c-locale" - "c-locale"
# Any locale other than C or UTF-8.
- "another-locale"
- "integration": - "integration":
requires: requires:
@ -196,6 +198,15 @@ jobs:
LANG: "C" LANG: "C"
another-locale:
<<: *DEBIAN
environment:
<<: *UTF_8_ENVIRONMENT
# aka "Latin 1"
LANG: "en_US.ISO-8859-1"
deprecations: deprecations:
<<: *DEBIAN <<: *DEBIAN

0
newsfragments/3007.minor Normal file
View File

View File

@ -91,7 +91,7 @@ class INotify(object):
self.callbacks = callbacks self.callbacks = callbacks
def event(self, filepath, mask): def event(self, filepath, mask):
with start_action(action_type=u"fake-inotify:event", path=filepath.path, mask=mask): with start_action(action_type=u"fake-inotify:event", path=filepath.asTextMode().path, mask=mask):
for cb in self.callbacks: for cb in self.callbacks:
cb(None, filepath, mask) cb(None, filepath, mask)