Skip to content

Commit

Permalink
Remove compat code for Python older than 3.8 from tests (#1010)
Browse files Browse the repository at this point in the history
* Remove pre Python 3.8+ compat code from tests

* lint
  • Loading branch information
bdraco authored Sep 10, 2024
1 parent 6197e51 commit a0c04d5
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,12 @@
import argparse
import pickle
from dataclasses import dataclass
from functools import cached_property
from importlib import import_module
from sys import version_info as _version_info
from types import ModuleType
from typing import Callable, Type

try:
from functools import cached_property # Python 3.8+
except ImportError:
from functools import lru_cache as _lru_cache

def cached_property(func):
return property(_lru_cache()(func))


import pytest

from multidict import MultiMapping, MutableMultiMapping
Expand Down

0 comments on commit a0c04d5

Please sign in to comment.