mirror of
https://github.com/emikulic/darkhttpd.git
synced 2023-08-10 21:13:08 +03:00
More Python 3 updates.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env python
|
||||
#!/usr/bin/env python3
|
||||
# This is run by the "run-tests" script.
|
||||
import unittest
|
||||
import signal
|
||||
@@ -14,7 +14,8 @@ class TestTimeout(unittest.TestCase):
|
||||
# Expect to get EOF before the alarm fires.
|
||||
ret = s.recv(1024)
|
||||
signal.alarm(0)
|
||||
self.assertEquals(ret, '')
|
||||
s.close()
|
||||
self.assertEqual(ret, b'')
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
|
||||
Reference in New Issue
Block a user