Skip to content

Commit

Permalink
MNT: fix path for notebook coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
kmuehlbauer committed Feb 28, 2024
1 parent 045b510 commit 6fffcd5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions examples/notebooks/conftest.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python
# Copyright (c) 2019-2022, wradlib developers.
# Copyright (c) 2022, openradar developers.
# Copyright (c) 2022-2024, openradar developers.
# Distributed under the MIT License. See LICENSE.txt for more info.

import os
Expand Down Expand Up @@ -45,7 +45,8 @@ def from_parent(cls, parent, name):
return cls(parent=parent, name=name)

def runtest(self):
cur_dir = os.path.dirname(self.path)
# use current path to get coverage working
cur_dir = os.getcwd()

# See https://bugs.python.org/issue37373
if (
Expand Down

0 comments on commit 6fffcd5

Please sign in to comment.