Skip to content

Commit faff7f8

Browse files
committed
Stop using package_directory in a test
1 parent df36bbc commit faff7f8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎tests/unit/searchcommands/test_builtin_options.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
from splunklib.searchcommands import environment
2525
from splunklib.searchcommands.decorators import Configuration
2626
from splunklib.searchcommands.search_command import SearchCommand
27-
from tests.unit.searchcommands import package_directory, rebase_environment
27+
from tests.unit.searchcommands import rebase_environment
2828

2929

3030
# portable log level names
@@ -126,7 +126,7 @@ def test_logging_configuration(self):
126126

127127
try:
128128
command.logging_configuration = os.path.join(
129-
package_directory, "non-existent.logging.conf"
129+
os.path.dirname(os.path.realpath(__file__)), "non-existent.logging.conf"
130130
)
131131
except ValueError:
132132
pass

0 commit comments

Comments
 (0)