fix circular reference in utils and testcase module

This commit is contained in:
httprunner
2017-11-02 12:45:59 +08:00
parent d1acfd37ef
commit 5b0d28b8c6
7 changed files with 132 additions and 125 deletions

View File

@@ -1,9 +1,16 @@
#coding: utf-8
import json
try:
FileNotFoundError = FileNotFoundError
except NameError:
FileNotFoundError = IOError
try:
JSONDecodeError = json.decoder.JSONDecodeError
except AttributeError:
JSONDecodeError = ValueError
class MyBaseError(BaseException):
pass