Skip to content
Snippets Groups Projects
Commit bbde9e96 authored by Frank Winklmeier's avatar Frank Winklmeier
Browse files

Merge branch 'py312.PyJobTransforms-20240529' into 'main'

PyJobTransforms: Fix tests for python 3.12.

See merge request !71798
parents 8cb3dad0 cbc64bd9
28 merge requests!78241Draft: FPGATrackSim: GenScan code refactor,!78236Draft: Switching Streams https://its.cern.ch/jira/browse/ATR-27417,!78056AFP monitoring: new synchronization and cleaning,!78041AFP monitoring: new synchronization and cleaning,!77990Updating TRT chip masks for L1TRT trigger simulation - ATR-28372,!77733Draft: add new HLT NN JVT, augmented with additional tracking information,!77731Draft: Updates to ZDC reconstruction,!77728Draft: updates to ZDC reconstruction,!77522Draft: sTGC Pad Trigger Emulator,!76725ZdcNtuple: Fix cppcheck warning.,!76611L1CaloFEXByteStream: Fix out-of-bounds array accesses.,!76475Punchthrough AF3 implementation in FastG4,!76474Punchthrough AF3 implementation in FastG4,!76343Draft: MooTrackBuilder: Recalibrate NSW hits in refine method,!75729New implementation of ZDC nonlinear FADC correction.,!75703Draft: Update to HI han config for HLT jets,!75184Draft: Update file heavyions_run.config,!74430Draft: Fixing upper bound for Delayed Jet Triggers,!73963Changing the path of the histograms to "Expert" area,!73875updating ID ART reference plots,!73874AtlasCLHEP_RandomGenerators: Fix cppcheck warnings.,!73449Add muon detectors to DarkJetPEBTLA partial event building,!73343Draft: [TrigEgamma] Add photon ringer chains on bootstrap mechanism,!72336Fixed TRT calibration crash,!72176Draft: Improving L1TopoOnline chain that now gets no-empty plots. Activating it by default,!72012Draft: Separate JiveXMLConfig.py into Config files,!71876Fix MET trigger name in MissingETMonitoring,!71798PyJobTransforms: Fix tests for python 3.12.
# Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration # Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
# Declare the package name: # Declare the package name:
atlas_subdir( PyJobTransforms ) atlas_subdir( PyJobTransforms )
...@@ -29,11 +29,11 @@ endfunction( _add_test ) ...@@ -29,11 +29,11 @@ endfunction( _add_test )
# Tests in the package: # Tests in the package:
foreach( test Echo_tf Sleep_tf foreach( test Echo_tf Sleep_tf
transform TransformUtils trfAMI trfArgs trfDecorators trfEnv transform TransformUtils trfAMI trfArgs trfEnv
trfExceptions trfExe trfExitCodes trfFileUtils trfGraph trfJobOptions trfLogger trfExceptions trfExe trfExitCodes trfGraph trfJobOptions trfLogger
trfMPTools trfReports trfReportsSignaledExit trfSignal trfSignatures trfMPTools trfReports trfReportsSignaledExit trfSignatures
trfUtils trfUtilsDBRelease trfUtilsParallelJobProcessor trfUtilsParallelJobProcessorData trfUtils trfUtilsDBRelease trfUtilsParallelJobProcessor trfUtilsParallelJobProcessorData
trfValidateRootFile trfValidation trfArgClasses ) trfValidation trfArgClasses )
_add_test( ${test} py 300 ) _add_test( ${test} py 300 )
endforeach() endforeach()
......
#! /usr/bin/env python
# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
## @Package test_trfDecorators.py
# @brief Unittests for trfDecorators.py
# @author graeme.andrew.stewart@cern.ch
# @version $Id: test_trfDecorators.py 529035 2012-12-05 15:45:24Z graemes $
import unittest
import logging
msg = logging.getLogger(__name__)
# Allowable to import * from the package for which we are the test suite
from PyJobTransforms.trfDecorators import *
## Unittests for this module
class trfDecoratorTests(unittest.TestCase):
pass
if __name__ == '__main__':
unittest.main()
#! /usr/bin/env python
# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
## @Package test_trfFileUtils.py
# @brief Unittests for trfFileUtils.py
# @author graeme.andrew.stewart@cern.ch
# @version $Id: test_trfFileUtils.py 529035 2012-12-05 15:45:24Z graemes $
import unittest
import logging
msg = logging.getLogger(__name__)
# Allowable to import * from the package for which we are the test suite
from PyJobTransforms.trfFileUtils import *
## Unittests for this module
# Write me!
if __name__ == '__main__':
unittest.main()
#! /usr/bin/env python
# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
## @Package test_trfSignal.py
# @brief Unittests for trfSignal.py
# @author graeme.andrew.stewart@cern.ch
# @version $Id: test_trfSignal.py 529035 2012-12-05 15:45:24Z graemes $
import unittest
import logging
msg = logging.getLogger(__name__)
# Allowable to import * from the package for which we are the test suite
from PyJobTransforms.trfSignal import *
## Unittests for this module
# Write me!
if __name__ == '__main__':
unittest.main()
#! /usr/bin/env python #! /usr/bin/env python
# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration # Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
## @Package test_ParallelJobProcessor.py ## @Package test_ParallelJobProcessor.py
# @brief Unittests for trfUtils.py ParallelJobProcessor # @brief Unittests for trfUtils.py ParallelJobProcessor
...@@ -72,8 +72,9 @@ def exception(): ...@@ -72,8 +72,9 @@ def exception():
## @brief unit tests for the parallel job processor ## @brief unit tests for the parallel job processor
class TestParallelJobProcessor(unittest.TestCase): class TestParallelJobProcessor(unittest.TestCase):
# Disable for now # Dummy test --- in python3.12, unittest fails if there are no tests.
pass def test_dummy(self):
return
## @brief unit test for working functions ## @brief unit test for working functions
......
#! /usr/bin/env python #! /usr/bin/env python
# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration # Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
## @Package test_ParallelJobProcessorData.py ## @Package test_ParallelJobProcessorData.py
# @brief Unittests for output file validation using trfUtils.py # @brief Unittests for output file validation using trfUtils.py
...@@ -30,8 +30,9 @@ fileBS1 = "/afs/cern.ch/atlas/project/rig/referencefiles/dataStreams_high_mu/d ...@@ -30,8 +30,9 @@ fileBS1 = "/afs/cern.ch/atlas/project/rig/referencefiles/dataStreams_high_mu/d
## @brief unit tests for output data file validation using the parallel job ## @brief unit tests for output data file validation using the parallel job
# processor # processor
class TestOutputFileValidationInParallel(unittest.TestCase): class TestOutputFileValidationInParallel(unittest.TestCase):
# Disable for now # Dummy test --- in python3.12, unittest fails if there are no tests.
pass def test_dummy(self):
return
# #
# ## @brief unit test for AOD # ## @brief unit test for AOD
......
#! /usr/bin/env python
# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
## @Package test_trfValidateRootFile.py
# @brief Unittests for trfValidateRootFile.py
# @author graeme.andrew.stewart@cern.ch
# @version $Id: test_trfValidateRootFile.py 529035 2012-12-05 15:45:24Z graemes $
import unittest
import logging
msg = logging.getLogger(__name__)
# Allowable to import * from the package for which we are the test suite
from PyJobTransforms.trfValidateRootFile import *
## Unittests for this module
# Write me!
if __name__ == '__main__':
unittest.main()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment