/builds/709/mentat/pynspect/pynspect/traversers.py:527: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3,and in 3.9 it will stop working
class ListIP(collections.MutableSequence):
/builds/709/mentat/pynspect/venv/lib/python3.7/site-packages/typedcols.py:64: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3,and in 3.9 it will stop working
class TypedDict(collections.MutableMapping):
............../builds/709/mentat/pynspect/pynspect/jpath.py:276: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3,and in 3.9 it will stop working
if not isinstance(node, dict) and not isinstance(node, collections.Mapping):
..................F...F.....F............
======================================================================
FAIL: test_02_compilation_callbacks (pynspect.tests.test_compilers.TestIDEAFilterCompiler)
Perform basic compilation callback tests.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/builds/709/mentat/pynspect/pynspect/tests/test_compilers.py", line 133, in test_02_compilation_callbacks
"TIMEDELTA(datetime.timedelta(0, 3600))"
AssertionError: 'TIMEDELTA(datetime.timedelta(seconds=3600))' != 'TIMEDELTA(datetime.timedelta(0, 3600))'
- TIMEDELTA(datetime.timedelta(seconds=3600))
? ^^^^^^^^
+ TIMEDELTA(datetime.timedelta(0, 3600))
? ^^^
======================================================================
FAIL: test_05_idea_func_compilations (pynspect.tests.test_compilers.TestIDEAFilterCompiler)
Perform IDEA function compilation tests.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/builds/709/mentat/pynspect/pynspect/tests/test_compilers.py", line 350, in test_05_idea_func_compilations
self.assertEqual(repr(res), "COMPBINOP(VARIABLE('DetectTime') OP_LT MATHBINOP(FUNCTION(utcnow()) OP_MINUS TIMEDELTA(datetime.timedelta(0, 3600))))")
AssertionError: "COMP[56 chars]cnow()) OP_MINUS TIMEDELTA(datetime.timedelta(seconds=3600))))" != "COMP[56 chars]cnow()) OP_MINUS TIMEDELTA(datetime.timedelta(0, 3600))))"
- COMPBINOP(VARIABLE('DetectTime') OP_LT MATHBINOP(FUNCTION(utcnow()) OP_MINUS TIMEDELTA(datetime.timedelta(seconds=3600))))
? ^^^^^^^^
+ COMPBINOP(VARIABLE('DetectTime') OP_LT MATHBINOP(FUNCTION(utcnow()) OP_MINUS TIMEDELTA(datetime.timedelta(0, 3600))))
? ^^^
======================================================================
FAIL: test_06_advanced_filters (pynspect.tests.test_filters_idea.TestDataObjectFilterIDEA)
Perform advanced filtering tests.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/builds/709/mentat/pynspect/pynspect/tests/test_filters_idea.py", line 318, in test_06_advanced_filters
self.assertEqual(repr(rule), "MATHBINOP(VARIABLE('DetectTime') OP_PLUS TIMEDELTA(datetime.timedelta(0, 3600)))")
AssertionError: "MATH[19 chars]ectTime') OP_PLUS TIMEDELTA(datetime.timedelta(seconds=3600)))" != "MATH[19 chars]ectTime') OP_PLUS TIMEDELTA(datetime.timedelta(0, 3600)))"
- MATHBINOP(VARIABLE('DetectTime') OP_PLUS TIMEDELTA(datetime.timedelta(seconds=3600)))
? ^^^^^^^^
+ MATHBINOP(VARIABLE('DetectTime') OP_PLUS TIMEDELTA(datetime.timedelta(0, 3600)))
?