Skip to content

Commit 09b5a90

Browse files
committed
assert error msg in test
1 parent b57b98d commit 09b5a90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/test_os.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3958,7 +3958,7 @@ async def test_invalid_offset(self):
39583958
self.assertEqual(cm.exception.errno, errno.EINVAL)
39593959

39603960
async def test_invalid_count(self):
3961-
with self.assertRaises(ValueError):
3961+
with self.assertRaises(ValueError, msg="count cannot be negative"):
39623962
await self.sendfile_wrapper(self.sockno, self.fileno, offset=0,
39633963
count=-1)
39643964

0 commit comments

Comments
 (0)