Skip to content

Commit 210be14

Browse files
committed
Fix function test to work on both Py 2 + 3
1 parent 8a7f5ea commit 210be14

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_ot_propagators.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ def test_basics():
1010

1111
inject_func = getattr(ihp.HTTPPropagator, "inject", None)
1212
assert inject_func
13-
assert inspect.ismethod(inject_func)
13+
assert callable(inject_func)
1414

1515
extract_func = getattr(ihp.HTTPPropagator, "extract", None)
1616
assert extract_func
17-
assert inspect.ismethod(extract_func)
17+
assert callable(extract_func)
1818

1919

2020
def test_inject():

0 commit comments

Comments
 (0)