Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 114b724 commit 5c1808aCopy full SHA for 5c1808a
1 file changed
Lib/test/test_pep277.py
@@ -132,7 +132,10 @@ def test_normalize(self):
132
for name in others:
133
if sys.platform == 'darwin' and normalize('NFD', name) in files:
134
# Mac OS X decomposes Unicode names. See comment above.
135
- os.stat(name)
+ try:
136
+ os.stat(name)
137
+ except OSError as err:
138
+ raise AssertionError("File %a doesn't exist" % name)
139
continue
140
self._apply_failure(open, name, IOError)
141
self._apply_failure(os.stat, name, OSError)
0 commit comments