Skip to content

Commit c31f1f5

Browse files
committed
[python] Replace deprecated assertEquals with assertEqual in build graph test
`unitest.assertEquals` is deprecated in Python 3.2 and finally removed in Python 3.12 [1]. Due to this, this test files in recent Linux distros, like Ubuntu 24.04 or Fedora 38+. This patch replaces the deprecated function with `assertEqual`. [1] https://docs.python.org/3/whatsnew/3.12.html
1 parent 2507583 commit c31f1f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/swift_build_support/tests/test_build_graph.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,4 @@ def test_simple_build_graph(self):
5454
selectedProducts = [products['swiftpm']]
5555
schedule = build_graph.produce_scheduled_build(selectedProducts)
5656
names = [x.name for x in schedule[0]]
57-
self.assertEquals(['cmark', 'llvm', 'swift', 'swiftpm'], names)
57+
self.assertEqual(['cmark', 'llvm', 'swift', 'swiftpm'], names)

0 commit comments

Comments
 (0)