Skip to content

Commit 9ba6c22

Browse files
committed
fix #1 incorrect path separator
1 parent 5408c98 commit 9ba6c22

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
### Added
55
- W6401 `deprecated-pytest-yield-fixture`: add warning for [yield_fixture functions](https://docs.pytest.org/en/latest/yieldfixture.html)
66

7+
### Fixed
8+
- Fix incorrect path separator for Windows (#1)
9+
710
## [0.2.0] - 2020-05-25
811
### Added
912
- Suppressing FP `no-member` from [using workaround of accessing cls in setup fixture](https://github.com/pytest-dev/pytest/issues/3778#issuecomment-411899446)

pylint_pytest/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import os
2-
import sys
32
import inspect
43
import importlib
54
import glob
@@ -19,7 +18,7 @@ def register(linter):
1918
module = module.replace(dirname, '', 1)
2019

2120
# translate file path into module import path
22-
module = module.replace('/', '.')
21+
module = module.replace(os.sep, '.')
2322

2423
checker = importlib.import_module(module, package=os.path.basename(dirname))
2524
for attr_name in dir(checker):

0 commit comments

Comments
 (0)