Browse Source

[library/python/pytest/plugins] Suppress PLR1727

prettyboy 1 year ago
parent
commit
33b9092c54
1 changed files with 2 additions and 2 deletions
  1. 2 2
      library/python/pytest/plugins/ya.py

+ 2 - 2
library/python/pytest/plugins/ya.py

@@ -825,7 +825,7 @@ class TraceReportGenerator(object):
             'subtest': subtest_name,
             'subtest': subtest_name,
         }
         }
         # Enable when CI is ready, see YA-465
         # Enable when CI is ready, see YA-465
-        if False and test_item.location:
+        if False and test_item.location:  # noqa PLR1727
             message['path'] = test_item.location
             message['path'] = test_item.location
         if test_item.nodeid in pytest_config.test_logs:
         if test_item.nodeid in pytest_config.test_logs:
             message['logs'] = pytest_config.test_logs[test_item.nodeid]
             message['logs'] = pytest_config.test_logs[test_item.nodeid]
@@ -861,7 +861,7 @@ class TraceReportGenerator(object):
                 'tags': _get_item_tags(test_item),
                 'tags': _get_item_tags(test_item),
             }
             }
             # Enable when CI is ready, see YA-465
             # Enable when CI is ready, see YA-465
-            if False and test_item.location:
+            if False and test_item.location:  # noqa PLR1727
                 message['path'] = test_item.location
                 message['path'] = test_item.location
             if test_item.nodeid in pytest_config.test_logs:
             if test_item.nodeid in pytest_config.test_logs:
                 message['logs'] = pytest_config.test_logs[test_item.nodeid]
                 message['logs'] = pytest_config.test_logs[test_item.nodeid]