nose2 replaces nose for the unit tests

This commit is contained in:
Cédric Bonhomme 2019-12-19 23:03:49 +01:00
parent 71f6c08c28
commit 04531488ca
No known key found for this signature in database
GPG key ID: A1CB94DE57B7A70D
4 changed files with 75 additions and 12 deletions

View file

@ -123,9 +123,9 @@ def reveal(input_image: Union[str, IO[bytes]], encoding: str = "UTF-8", shift: i
if bitab[-1] == ":" and limit is None:
try:
limit = int("".join(bitab[:-1]))
except:
except Exception:
pass
if len(bitab) - len(str(limit)) - 1 == limit:
img.close()
return "".join(bitab)[len(str(limit)) + 1 :]
return "".join(bitab)[len(str(limit)) + 1:]