Selftests: use builtins.open for mock
When the recent_mock() utility was introduced, I may have missed the
fact that it would be possible to mock builtins.open(). Or, it may
be that was only possible in Python 3.
Anyway, now that we only support Python 3, let's just mock
builtins.open() and drop this custom decorator.
Signed-off-by: NCleber Rosa <crosa@redhat.com>
Showing
想要评论请 注册 或 登录