Skip to content

Commit

Permalink
test: use importlib_metadata where appropriate
Browse files Browse the repository at this point in the history
  • Loading branch information
agoose77 committed Oct 4, 2023
1 parent 4948114 commit c87fd4a
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions tests/test_2682_custom_pickler.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,24 @@
# BSD 3-Clause License; see https://github.com/scikit-hep/awkward-1.0/blob/main/LICENSE
import importlib.metadata


import multiprocessing
import os
import pickle
import sys
from concurrent.futures import ProcessPoolExecutor

if sys.version_info < (3, 12):
import importlib_metadata
else:
import importlib.metadata as importlib_metadata

import pytest

import awkward as ak


def has_entry_point():
return bool(importlib.metadata.entry_points(group="awkward.pickle.reduce").names)
return bool(importlib_metadata.entry_points(group="awkward.pickle.reduce").names)


pytestmark = pytest.mark.skipif(
Expand Down

0 comments on commit c87fd4a

Please sign in to comment.