Skip to content

Commit

Permalink
Add pytest-timeout to requirements-dev.txt and fixes a deprecated war…
Browse files Browse the repository at this point in the history
…nings when running tests (#2145)

* Add pytest-timeout to requirements-dev.txt
* Filter out the deprecated warnings in compat.py

Signed-off-by: Tao He <sighingnow@gmail.com>
  • Loading branch information
sighingnow committed Oct 18, 2022
1 parent 3038b89 commit 97eec70
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion python/graphscope/nx/utils/compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,17 @@

import copy
import functools
import imp
import inspect
import warnings
from enum import Enum
from types import FunctionType
from types import LambdaType
from types import ModuleType

with warnings.catch_warnings():
warnings.filterwarnings("ignore", category=DeprecationWarning)
import imp

__all__ = [
"internal_name",
"replace_module_context",
Expand Down
1 change: 1 addition & 0 deletions python/requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ m2r2
pylint
pytest
pytest-cov
pytest-timeout
Pygments>=2.4.1
recommonmark
sphinx==4.0.3
Expand Down

0 comments on commit 97eec70

Please sign in to comment.