diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_wasyncore.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/test_wasyncore.py b/tests/test_wasyncore.py index e833c7e..55c4019 100644 --- a/tests/test_wasyncore.py +++ b/tests/test_wasyncore.py @@ -1196,7 +1196,10 @@ class Test__strerror(unittest.TestCase): return _strerror(err) def test_gardenpath(self): - self.assertEqual(self._callFUT(1), "Operation not permitted") + from errno import EINVAL + from os import strerror + + self.assertEqual(self._callFUT(EINVAL), strerror(EINVAL)) def test_unknown(self): self.assertEqual(self._callFUT("wut"), "Unknown error wut") |