X-Git-Url: http://users.mur.at/ms/git/gitweb/?a=blobdiff_plain;f=aces_1.0.0%2Fpython%2Faces_ocio%2Ftests%2Ftests_aces_config.py;h=f41349e6a788eea512555eb6125272b7dfe9da7a;hb=24460c4f42d9e44101d414ef15579e5f7d250bb7;hp=8814e90a259850e2564dc05cb012d65efc99a9f9;hpb=e4267330034323ce04c3a3ce813cfee42482eb22;p=OpenColorIO-Configs.git diff --git a/aces_1.0.0/python/aces_ocio/tests/tests_aces_config.py b/aces_1.0.0/python/aces_ocio/tests/tests_aces_config.py index 8814e90..f41349e 100644 --- a/aces_1.0.0/python/aces_ocio/tests/tests_aces_config.py +++ b/aces_1.0.0/python/aces_ocio/tests/tests_aces_config.py @@ -5,6 +5,8 @@ Defines unit tests for *ACES* configuration. """ +from __future__ import division + import hashlib import os import re @@ -99,11 +101,12 @@ class TestACESConfig(unittest.TestCase): hashes = {} for path in files_walker(directory, filters_in=filters_in, - filters_out=filters_out): + filters_out=filters_out, + flags=flags): with open(path) as file: - hash = hashlib.md5( + digest = hashlib.md5( re.sub('\s', '', file.read())).hexdigest() - hashes[path.replace(directory, '')] = hash + hashes[path.replace(directory, '')] = digest return hashes def test_ACES_config(self):