mirror of
https://github.com/borgmatic-collective/borgmatic.git
synced 2026-08-05 07:53:00 +02:00
12 lines
233 B
Python
12 lines
233 B
Python
from flexmock import flexmock
|
|
import sys
|
|
|
|
|
|
def builtins_mock():
|
|
try:
|
|
# Python 2
|
|
return flexmock(sys.modules['__builtin__'])
|
|
except KeyError:
|
|
# Python 3
|
|
return flexmock(sys.modules['builtins'])
|