Skip to content

Commit 8a7649d

Browse files
authored
Fix pytest run on Windows (#526)
Signed-off-by: Ivan Santiago Paunovic <[email protected]>
1 parent dc050b2 commit 8a7649d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

launch/conftest.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,14 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15+
from pathlib import PurePath
16+
1517

1618
def pytest_ignore_collect(path):
1719
# pytest doctest messes up when trying to import .launch.py packages, ignore them.
1820
# It also messes up when trying to import launch.logging.handlers due to conflicts with
1921
# logging.handlers, ignore that as well.
2022
return str(path).endswith((
2123
'.launch.py',
22-
'logging/handlers.py',
24+
str(PurePath('logging') / 'handlers.py'),
2325
))

0 commit comments

Comments
 (0)