mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-11-16 11:27:33 -08:00
md5 -> hashlib
This commit is contained in:
parent
3d8e7a1776
commit
671e2b1289
@ -1,6 +1,6 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
# utilities to help disassemble pokémon crystal
|
# utilities to help disassemble pokémon crystal
|
||||||
import sys, os, inspect, md5, json
|
import sys, os, inspect, hashlib, json
|
||||||
from copy import copy, deepcopy
|
from copy import copy, deepcopy
|
||||||
import subprocess
|
import subprocess
|
||||||
from new import classobj
|
from new import classobj
|
||||||
@ -7971,7 +7971,9 @@ class TestCram(unittest.TestCase):
|
|||||||
"ROM file must have the correct md5 sum"
|
"ROM file must have the correct md5 sum"
|
||||||
rom = self.rom
|
rom = self.rom
|
||||||
correct = "9f2922b235a5eeb78d65594e82ef5dde"
|
correct = "9f2922b235a5eeb78d65594e82ef5dde"
|
||||||
md5sum = md5.md5(rom).hexdigest()
|
md5 = hashlib.md5()
|
||||||
|
md5.update(rom)
|
||||||
|
md5sum = md5.hexdigest()
|
||||||
self.assertEqual(md5sum, correct)
|
self.assertEqual(md5sum, correct)
|
||||||
|
|
||||||
def test_bizarre_http_presence(self):
|
def test_bizarre_http_presence(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user