-
Notifications
You must be signed in to change notification settings - Fork 53
Open
Description
Hi,
The hash tests are failing on OpenBSD. I have actually known about this for a while, but I pushed it aside since hash used to be in the closed repo, which I rarely use.
I have not had time to investigate yet, but here is the log from the latest hippy master and pypy default:
============================= test session starts ==============================
platform openbsd5 -- Python 2.7.8 -- py-1.4.20 -- pytest-2.5.2
collected 88 items
testing/test_hash.py ...F.F........................................F.F.......................................
=================================== FAILURES ===================================
______________________________ TestHash.test_sha1 ______________________________
self = <testing.test_hash.TestHash object at 0x1db451250250>
def test_sha1(self):
output = self.run('''
echo hash("sha1", "php");
''')
space = self.space
> assert space.str_w(output[0]) == "47425e4490d1548713efea3b8a6f5d778e4b1766"
E assert '67452301efcd...25476c3d2e1f0' == '47425e4490d15...f5d778e4b1766'
E - 67452301efcdab8998badcfe10325476c3d2e1f0
E + 47425e4490d1548713efea3b8a6f5d778e4b1766
testing/test_hash.py:33: AssertionError
------------------------------- Captured stdout --------------------------------
0 LOAD_NAME 0
2 GETFUNC
3 LOAD_NAME 1
5 ARG_BY_VALUE 0
7 LOAD_NAME 2
9 ARG_BY_VALUE 1
11 CALL 2
13 ECHO
_____________________________ TestHash.test_sha256 _____________________________
self = <testing.test_hash.TestHash object at 0x1db3a9d6a9d0>
def test_sha256(self):
output = self.run('''
echo hash("sha256", "php");
''')
space = self.space
> assert space.str_w(output[0]) == "12a5d18ee896e59954bdce0f4acc7212eebe03dae1834ef4ce160ac5afa5c4a8"
E assert 'aca00f710da9...911d7ceb52804' == '12a5d18ee896e...60ac5afa5c4a8'
E - aca00f710da98fc6f850641d1f07d869ce7d315ed1c7b3d8f58911d7ceb52804
E + 12a5d18ee896e59954bdce0f4acc7212eebe03dae1834ef4ce160ac5afa5c4a8
testing/test_hash.py:47: AssertionError
------------------------------- Captured stdout --------------------------------
0 LOAD_NAME 0
2 GETFUNC
3 LOAD_NAME 1
5 ARG_BY_VALUE 0
7 LOAD_NAME 2
9 ARG_BY_VALUE 1
11 CALL 2
13 ECHO
____________________________ TestHash.test_raw_sha1 ____________________________
self = <testing.test_hash.TestHash object at 0x1db3f96baf10>
def test_raw_sha1(self):
import md5
output = self.run('''
echo hash("sha1", "php", 1);
''')
space = self.space
s = space.str_w(output[0])
> assert md5.new(s).hexdigest() == "c409c0762e20b61fca8a5661415495b8"
E assert 'e4102ad9c480...042b8fde8ec37' == 'c409c0762e20b...a5661415495b8'
E - e4102ad9c4801e959c6042b8fde8ec37
E + c409c0762e20b61fca8a5661415495b8
testing/test_hash.py:342: AssertionError
------------------------------- Captured stdout --------------------------------
0 LOAD_NAME 0
2 GETFUNC
3 LOAD_NAME 1
5 ARG_BY_VALUE 0
7 LOAD_NAME 2
9 ARG_BY_VALUE 1
11 LOAD_CONST 0
13 ARG_BY_VALUE 2
15 CALL 3
17 ECHO
___________________________ TestHash.test_raw_sha256 ___________________________
self = <testing.test_hash.TestHash object at 0x1db45cc10450>
def test_raw_sha256(self):
import md5
output = self.run('''
echo hash("sha256", "php", 1);
''')
space = self.space
s = space.str_w(output[0])
> assert md5.new(s).hexdigest() == "1e8fa266b5f865c7af37cdb282ddbe3e"
E assert 'a5b9017d7b54...c900087ef9944' == '1e8fa266b5f86...7cdb282ddbe3e'
E - a5b9017d7b549e65fcac900087ef9944
E + 1e8fa266b5f865c7af37cdb282ddbe3e
testing/test_hash.py:360: AssertionError
------------------------------- Captured stdout --------------------------------
0 LOAD_NAME 0
2 GETFUNC
3 LOAD_NAME 1
5 ARG_BY_VALUE 0
7 LOAD_NAME 2
9 ARG_BY_VALUE 1
11 LOAD_CONST 0
13 ARG_BY_VALUE 2
15 CALL 3
17 ECHO
===================== 4 failed, 84 passed in 11.83 seconds =====================
Metadata
Metadata
Assignees
Labels
No labels