This repository was archived by the owner on Nov 3, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 1
1
# encoding: utf-8
2
2
# No docstring, so we can test D100
3
+ import os
3
4
import sys
4
5
from .expected import Expectation
5
6
@@ -362,5 +363,5 @@ def docstring_ignore_violations_of_pydocstyle_D400_and_PEP8_E501_but_catch_D401(
362
363
"""Runs something"""
363
364
pass
364
365
365
- expect (__file__ if __file__ [- 1 ] != 'c' else __file__ [:- 1 ],
366
+ expect (os . path . normcase ( __file__ if __file__ [- 1 ] != 'c' else __file__ [:- 1 ]) ,
366
367
'D100: Missing docstring in public module' )
Original file line number Diff line number Diff line change @@ -273,8 +273,11 @@ def test_pep257(test_case):
273
273
locals = locals (),
274
274
fromlist = ['expectation' ],
275
275
level = 1 )
276
- results = list (check ([os .path .join (os .path .dirname (__file__ ),
277
- 'test_cases' , test_case + '.py' )],
276
+ test_case_dir = os .path .normcase (os .path .dirname (__file__ ))
277
+ test_case_file = os .path .join (test_case_dir ,
278
+ 'test_cases' ,
279
+ test_case + '.py' )
280
+ results = list (check ([test_case_file ],
278
281
select = set (ErrorRegistry .get_error_codes ())))
279
282
for error in results :
280
283
assert isinstance (error , Error )
You can’t perform that action at this time.
0 commit comments