Python 3 ConfigParser compatibility.
This commit is contained in:
parent
45c6541266
commit
69971cd7e2
1 changed files with 3 additions and 3 deletions
|
|
@ -8,7 +8,7 @@ def insert_mock_parser(section_names):
|
|||
parser = flexmock()
|
||||
parser.should_receive('read')
|
||||
parser.should_receive('sections').and_return(section_names)
|
||||
flexmock(module).SafeConfigParser = parser
|
||||
flexmock(module).ConfigParser = parser
|
||||
|
||||
return parser
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue