fix Python version compability

This commit is contained in:
httprunner
2018-05-03 15:13:25 +08:00
parent 5cf5aae3f9
commit 017e6dc0ec
6 changed files with 92 additions and 4 deletions

View File

@@ -62,7 +62,7 @@ class TestFileUtils(unittest.TestCase):
def test_load_testcases_bad_filepath(self):
testcase_file_path = os.path.join(os.getcwd(), 'tests/data/demo')
with self.assertRaises(FileNotFoundError):
with self.assertRaises(exception.FileNotFoundError):
FileUtils.load_file(testcase_file_path)
def test_load_json_testcases(self):