Skip to content

Commit 3226d5a

Browse files
author
Victoria Hall
committed
unit tests use linux pool
1 parent a509a87 commit 3226d5a

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

eng/templates/jobs/build.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ jobs:
44

55
pool:
66
name: 1es-pool-azfunc-public
7-
image: 1es-windows-2022
8-
os: windows
7+
image: 1es-ubuntu-22.04
8+
os: linux
99

1010
steps:
1111
- task: UsePythonVersion@0

eng/templates/jobs/ci-unit-tests.yml

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ jobs:
33
displayName: "Run Python Unit Tests"
44

55
strategy:
6-
maxParallel: 1
76
matrix:
87
Python37:
98
PYTHON_VERSION: '3.7'

tests/unittests/test_logging.py

+6-2
Original file line numberDiff line numberDiff line change
@@ -56,5 +56,9 @@ def raising_function():
5656
self.assertIn("call1", processed_exception)
5757
self.assertIn("call2", processed_exception)
5858
self.assertIn("f", processed_exception)
59-
self.assertIn("tests/unittests/test_logging.py",
60-
processed_exception)
59+
file_path_present = False
60+
for line in processed_exception:
61+
if "tests/unittests/test_logging.py" in line:
62+
file_path_present = True
63+
break
64+
self.assertTrue(file_path_present)

0 commit comments

Comments
 (0)