Skip to content

Commit 6e8e716

Browse files
committed
Fix flake8 errors
1 parent 02fa44f commit 6e8e716

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

fluent.runtime/tests/__init__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import os
22

3+
34
# Unify path separator, default path separator on Windows is \ not /
4-
# Needed because many tests uses dict + string compare to make a virtual file structure
5+
# Needed in test_falllback.py because it uses dict + string compare to make a virtual file structure
56
def normalize_path(path):
6-
return "/".join(os.path.split(path))
7+
return "/".join(os.path.split(path))

fluent.runtime/tests/test_fallback.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ def test_bundles(self, codecs_open, isfile):
2727
"en/one.ftl": "four = exists",
2828
"en/two.ftl": "five = exists",
2929
}
30-
#isfile.side_effect = lambda p: p in data or ISFILE(p)
3130
isfile.side_effect = lambda p: normalize_path(p) in data or ISFILE(p)
3231
codecs_open.side_effect = lambda p, _, __: io.StringIO(data[normalize_path(p)])
3332
l10n = FluentLocalization(

0 commit comments

Comments
 (0)