From 36f0b134175020ea6a7dd7b5af249fd694302811 Mon Sep 17 00:00:00 2001
From: Walter Lampl <Walter.Lampl@cern.ch>
Date: Mon, 24 Aug 2020 07:40:22 +0200
Subject: [PATCH] set env var CLING_STANDARD_PCH to silence annying cling
 warning

---
 .../DataModelTestDataCommon/scripts/dmtest_condwriter.py       | 3 ++-
 DataQuality/DQUtils/tests/test_coracool.py                     | 2 ++
 Database/IOVDbMetaDataTools/test/testFillSimParams.py          | 3 ++-
 MagneticField/MagFieldServices/share/test_magFieldCondAlg.py   | 2 ++
 4 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/Control/DataModelTest/DataModelTestDataCommon/scripts/dmtest_condwriter.py b/Control/DataModelTest/DataModelTestDataCommon/scripts/dmtest_condwriter.py
index 33bf30337ce..c3bace48597 100755
--- a/Control/DataModelTest/DataModelTestDataCommon/scripts/dmtest_condwriter.py
+++ b/Control/DataModelTest/DataModelTestDataCommon/scripts/dmtest_condwriter.py
@@ -8,7 +8,8 @@
 
 from __future__ import print_function
 
-import sys
+import sys,os
+os.environ['CLING_STANDARD_PCH'] = 'none' #See bug ROOT-10789
 from PyCool import cool
 from CoolConvUtilities import AtlCoolLib, AtlCoolTool
 
diff --git a/DataQuality/DQUtils/tests/test_coracool.py b/DataQuality/DQUtils/tests/test_coracool.py
index de8cc0dc4f7..be9fb598efc 100755
--- a/DataQuality/DQUtils/tests/test_coracool.py
+++ b/DataQuality/DQUtils/tests/test_coracool.py
@@ -12,6 +12,8 @@ from quick_retrieve import browse_coracool
 
 from time import time
 
+from os import environ
+os.environ['CLING_STANDARD_PCH'] = 'none' #See bug ROOT-10789
 from PyCool import cool
 
 def fetch_lb_timestamps(since, until):
diff --git a/Database/IOVDbMetaDataTools/test/testFillSimParams.py b/Database/IOVDbMetaDataTools/test/testFillSimParams.py
index f879342aa97..685f3cbd752 100755
--- a/Database/IOVDbMetaDataTools/test/testFillSimParams.py
+++ b/Database/IOVDbMetaDataTools/test/testFillSimParams.py
@@ -13,8 +13,9 @@ __version__ = "$Id: testFillSimParams.py,v 1.1 2008-05-03 08:45:54 schaffer Exp
 __author__  = "RD Schaffer <R.D.Schaffer@cern.ch>"
 
 
-import sys
+import sys,os
 import string
+os.environ['CLING_STANDARD_PCH'] = 'none' #See bug ROOT-10789
 from PyCool import cool,coral
 from IOVDbMetaDataTools import ParameterDbFiller
 
diff --git a/MagneticField/MagFieldServices/share/test_magFieldCondAlg.py b/MagneticField/MagFieldServices/share/test_magFieldCondAlg.py
index 58bc3ca1d06..534954177e7 100644
--- a/MagneticField/MagFieldServices/share/test_magFieldCondAlg.py
+++ b/MagneticField/MagFieldServices/share/test_magFieldCondAlg.py
@@ -13,6 +13,8 @@ folder = '/EXT/DCS/MAGNETS/SENSORDATA'
 
 def createDB():
    """Create sqlite file with DCS currents"""
+   import os
+   os.environ['CLING_STANDARD_PCH'] = 'none' #See bug ROOT-10789
    from PyCool import cool
    from CoolConvUtilities import AtlCoolLib, AtlCoolTool
 
-- 
GitLab