X-Git-Url: http://gitweb.michael.orlitzky.com/?p=dead%2Fcensus-tools.git;a=blobdiff_plain;f=src%2FTests%2FUnit%2FFileUtilsTest.py;fp=src%2FTests%2FUnit%2FFileUtilsTest.py;h=21e5182ae8491da7c05760eef42fa7f4758740e0;hp=e649c4f78f5288d41430afafd20b0b7bb56daa04;hb=371a35c94370066b5f9598b195a828c9a7ce1d04;hpb=138ec3b8b2f02793a3d72f177b65d86baf9d450d diff --git a/src/Tests/Unit/FileUtilsTest.py b/src/Tests/Unit/FileUtilsTest.py index e649c4f..21e5182 100644 --- a/src/Tests/Unit/FileUtilsTest.py +++ b/src/Tests/Unit/FileUtilsTest.py @@ -43,11 +43,9 @@ class FindFilePathsTest(unittest.TestCase): res = FileUtils.find_file_paths(fixtures_path, target_files) self.assertTrue(len(res) == 2) - # "gentoo" comes first alphabetically, and so we'll traverse - # it first. Thus, postgis.sql should be found before - # lwpostgis.sql. - self.assertTrue('postgis.sql' in res[0]) - self.assertTrue('lwpostgis.sql' in res[1]) + # The order of these two is not reliable. + self.assertTrue('postgis.sql' in res[0] or 'postgis.sql' in res[1]) + self.assertTrue('lwpostgis.sql' in res[0] or 'lwpostgis.sql' in res[1]) def testOnlyOneResultReturnedWhenReturnFirstTrue(self):