bpo-43825: Fix deprecation warnings in test_cmd_line and test_collections (GH-25380)
* Fix deprecation warnings due to invalid escape sequences.
* Use self.assertEqual instead of deprecated self.assertEquals.
diff --git a/Lib/test/test_collections.py b/Lib/test/test_collections.py
index 7b245c0..98690d2 100644
--- a/Lib/test/test_collections.py
+++ b/Lib/test/test_collections.py
@@ -1515,7 +1515,7 @@ def __repr__(self):
items = [5,43,2,1]
s = MySet(items)
r = s.pop()
- self.assertEquals(len(s), len(items) - 1)
+ self.assertEqual(len(s), len(items) - 1)
self.assertNotIn(r, s)
self.assertIn(r, items)