Skip to content

Commit f6f260f

Browse files
committed
Replace TestCase method aliases removed in Python 3.12
Fixes: #568
1 parent 8ed9dc4 commit f6f260f

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

Diff for: CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
2121
([#535](https://github.com/PyFilesystem/pyfilesystem2/issues/535)).
2222
- Fixed a bug where files could be truncated or deleted when moved / copied onto itself.
2323
Closes [#546](https://github.com/PyFilesystem/pyfilesystem2/issues/546)
24+
- TestCase method aliases removed in Python 3.12 were replaced and now work with all Python versions.
25+
Closes [#568](https://github.com/PyFilesystem/pyfilesystem2/issues/568)
2426

2527
## [2.4.16] - 2022-05-02
2628

Diff for: CONTRIBUTORS.md

+1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ Many thanks to the following developers for contributing to this project:
4141
- [@sqwishy](https://github.com/sqwishy)
4242
- [Sven Schliesing](https://github.com/muffl0n)
4343
- [Thomas Feldmann](https://github.com/tfeldmann)
44+
- [Tomáš Hrnčiar](https://github.com/hrnciar)
4445
- [Tim Gates](https://github.com/timgates42/)
4546
- [@tkossak](https://github.com/tkossak)
4647
- [Todd Levi](https://github.com/televi)

Diff for: fs/test.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1082,7 +1082,7 @@ def test_remove(self):
10821082
self.fs.makedirs("foo/bar/baz/")
10831083

10841084
error_msg = "resource 'foo/bar/egg/test.txt' not found"
1085-
assertRaisesRegex = getattr(self, "assertRaisesRegex", self.assertRaisesRegexp)
1085+
assertRaisesRegex = getattr(self, "assertRaisesRegex", self.assertRaisesRegex)
10861086
with assertRaisesRegex(errors.ResourceNotFound, error_msg):
10871087
self.fs.remove("foo/bar/egg/test.txt")
10881088

0 commit comments

Comments
 (0)