aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/python/traitlets/py3/tests/config/test_loader.py
diff options
context:
space:
mode:
authorarmenqa <armenqa@yandex-team.com>2024-01-19 12:23:50 +0300
committerarmenqa <armenqa@yandex-team.com>2024-01-19 13:10:03 +0300
commit2de0149d0151c514b22bca0760b95b26c9b0b578 (patch)
tree2bfed9f3bce7e643ddf048bb61ce3dc0a714bcc2 /contrib/python/traitlets/py3/tests/config/test_loader.py
parenta8c06d218f12b2406fbce24d194885c5d7b68503 (diff)
downloadydb-2de0149d0151c514b22bca0760b95b26c9b0b578.tar.gz
feat contrib: aiogram 3
Relates: https://st.yandex-team.ru/, https://st.yandex-team.ru/
Diffstat (limited to 'contrib/python/traitlets/py3/tests/config/test_loader.py')
-rw-r--r--contrib/python/traitlets/py3/tests/config/test_loader.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/python/traitlets/py3/tests/config/test_loader.py b/contrib/python/traitlets/py3/tests/config/test_loader.py
index 9d864317bc..6e1510c2cd 100644
--- a/contrib/python/traitlets/py3/tests/config/test_loader.py
+++ b/contrib/python/traitlets/py3/tests/config/test_loader.py
@@ -2,6 +2,7 @@
# Copyright (c) IPython Development Team.
# Distributed under the terms of the Modified BSD License.
+from __future__ import annotations
import copy
import os
@@ -123,9 +124,8 @@ class TestFileCL(TestCase):
with JSONFileConfigLoader(fname, log=log) as config:
config.A.b = 1
- with self.assertRaises(TypeError):
- with JSONFileConfigLoader(fname, log=log) as config:
- config.A.cant_json = lambda x: x
+ with self.assertRaises(TypeError), JSONFileConfigLoader(fname, log=log) as config:
+ config.A.cant_json = lambda x: x
loader = JSONFileConfigLoader(fname, log=log)
cfg = loader.load_config()