From e7366390340a5314564457d2f2c4a10c20e450a3 Mon Sep 17 00:00:00 2001 From: Jusong Yu Date: Fri, 20 Oct 2023 14:27:06 +0000 Subject: [PATCH] WIP: get rid of warnings --- pyproject.toml | 9 +++++++++ src/aiidalab_qe/common/widgets.py | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 86197d98c..e87461bd6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -8,4 +8,13 @@ build-backend = "setuptools.build_meta" [tool.pytest.ini_options] filterwarnings = [ 'error', + 'ignore:Creating AiiDA configuration:UserWarning:aiida', + # For some reason we get this error, perhaps because we do + # not unload the AiiDA profile? Let's ignore this for now. + # E pytest.PytestUnraisableExceptionWarning: Exception ignored in: + # E Traceback (most recent call last): + # E File "/opt/conda/lib/python3.9/subprocess.py", line 1052, in __del__ + # E _warn("subprocess %s is still running" % self.pid, + # E ResourceWarning: subprocess 382685 is still running + 'ignore:Exception ignored in:pytest.PytestUnraisableExceptionWarning:_pytest', ] diff --git a/src/aiidalab_qe/common/widgets.py b/src/aiidalab_qe/common/widgets.py index 2059fe090..fae5cee90 100644 --- a/src/aiidalab_qe/common/widgets.py +++ b/src/aiidalab_qe/common/widgets.py @@ -245,7 +245,7 @@ def _observe_value(self, change): class CalcJobOutputFollower(traitlets.HasTraits): calcjob_uuid = traitlets.Unicode(allow_none=True) filename = traitlets.Unicode(allow_none=True) - output = traitlets.List(trait=traitlets.Unicode) + output = traitlets.List(trait=traitlets.Unicode()) lineno = traitlets.Int() def __init__(self, **kwargs):