Skip to content

Commit 35f5af7

Browse files
committed
fix(tests): monkey-patch collections to work around paramunittest module issue
1 parent e6df26c commit 35f5af7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test_xenon.py

+5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
# coding=utf-8
22
# import mock # can't use mock because patches influences each other
33
import os
4+
import sys
45
import unittest
56
import collections
67

8+
if sys.version_info[:2] >= (3, 10):
9+
import collections.abc
10+
collections.Mapping = collections.abc.Mapping
11+
712
import httpretty
813
from paramunittest import parametrized
914

0 commit comments

Comments
 (0)