Skip to content

Commit

Permalink
remove pytest fixure with recursion limit
Browse files Browse the repository at this point in the history
  • Loading branch information
danzafar committed Oct 24, 2024
1 parent e0b941a commit 21fc1a9
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions tests/unit/hive_metastore/test_locations.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from unittest.mock import Mock, call, create_autospec
import sys

import pytest
from databricks.labs.blueprint.installation import Installation
Expand Down Expand Up @@ -837,15 +836,7 @@ def my_side_effect(path, **_):
assert results[0].is_partitioned


@pytest.fixture
def set_recursion_limit():
original_limit = sys.getrecursionlimit()
sys.setrecursionlimit(150)
yield
sys.setrecursionlimit(original_limit)


def test_mount_infinite_loop(set_recursion_limit):
def test_mount_invalid_partition_char():

client = create_autospec(WorkspaceClient)

Expand Down

0 comments on commit 21fc1a9

Please sign in to comment.