Skip to content

Commit

Permalink
Fixed test imports for older releases. (#545)
Browse files Browse the repository at this point in the history
Fixed test imports for older releases
  • Loading branch information
yuce committed Apr 14, 2022
1 parent e146648 commit 9b9dcd5
Showing 1 changed file with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import typing
import unittest

from hazelcast.aggregator import Aggregator
from hazelcast.errors import NullPointerError, IllegalMonitorStateError
from hazelcast.predicate import Predicate, paging
from tests.base import HazelcastTestCase
Expand Down Expand Up @@ -161,8 +160,16 @@ def get_type_name(self) -> str:
return "com.hazelcast.serialization.compact.CompactReturningMapInterceptor"


class CompactReturningAggregator(Aggregator):
pass
try:
from hazelcast.aggregator import Aggregator

class CompactReturningAggregator(Aggregator):
pass

except ImportError:

class CompactReturningAggregator:
pass


class CompactReturningAggregatorSerializer(CompactSerializer[CompactReturningAggregator]):
Expand Down

0 comments on commit 9b9dcd5

Please sign in to comment.