We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1fcdb3c commit 2a504fdCopy full SHA for 2a504fd
tests/test_api.py
@@ -206,14 +206,8 @@ def _test_files(files):
206
file.read_text()
207
208
def test_file_hash_repr(self):
209
- try:
210
- assertRegex = self.assertRegex
211
- except AttributeError:
212
- # Python 2
213
- assertRegex = self.assertRegexpMatches
214
-
215
util = [p for p in files('distinfo-pkg') if p.name == 'mod.py'][0]
216
- assertRegex(repr(util.hash), '<FileHash mode: sha256 value: .*>')
+ self.assertRegex(repr(util.hash), '<FileHash mode: sha256 value: .*>')
217
218
def test_files_dist_info(self):
219
self._test_files(files('distinfo-pkg'))
0 commit comments