Skip to content

Commit a00e3e2

Browse files
eli-schwartzabichinger
authored andcommitted
test: fix deprecated and removed aliases to assertEqual
This file already uses the "correct" name a bunch of times. Both names have been around for the same amount of time but the version with an "s" at the end was deprecated in 3.2 and removed in 3.12.
1 parent 404db65 commit a00e3e2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test_move.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ def test_move_file_overwrite(self, _, fs_url):
167167
self.assertFalse(src.exists("target.txt"))
168168
self.assertFalse(dst.exists("file.txt"))
169169
self.assertTrue(dst.exists("target.txt"))
170-
self.assertEquals(dst.readtext("target.txt"), "source content")
170+
self.assertEqual(dst.readtext("target.txt"), "source content")
171171

172172
@parameterized.expand([("temp", "temp://"), ("mem", "mem://")])
173173
def test_move_file_overwrite_itself(self, _, fs_url):
@@ -177,7 +177,7 @@ def test_move_file_overwrite_itself(self, _, fs_url):
177177
tmp.writetext("file.txt", "content")
178178
fs.move.move_file(tmp, "file.txt", tmp, "file.txt")
179179
self.assertTrue(tmp.exists("file.txt"))
180-
self.assertEquals(tmp.readtext("file.txt"), "content")
180+
self.assertEqual(tmp.readtext("file.txt"), "content")
181181

182182
@parameterized.expand([("temp", "temp://"), ("mem", "mem://")])
183183
def test_move_file_overwrite_itself_relpath(self, _, fs_url):
@@ -188,7 +188,7 @@ def test_move_file_overwrite_itself_relpath(self, _, fs_url):
188188
new_dir.writetext("file.txt", "content")
189189
fs.move.move_file(tmp, "dir/../dir/file.txt", tmp, "dir/file.txt")
190190
self.assertTrue(tmp.exists("dir/file.txt"))
191-
self.assertEquals(tmp.readtext("dir/file.txt"), "content")
191+
self.assertEqual(tmp.readtext("dir/file.txt"), "content")
192192

193193
@parameterized.expand([(True,), (False,)])
194194
def test_move_file_cleanup_on_error(self, cleanup):

0 commit comments

Comments
 (0)