diff options
| author | Matthias Geier <Matthias.Geier@gmail.com> | 2017-10-19 18:34:48 +0200 |
|---|---|---|
| committer | Matthias Geier <Matthias.Geier@gmail.com> | 2017-10-21 09:51:51 +0200 |
| commit | 60dbadd41f33f3e3474926f1c53258f9e9612f3d (patch) | |
| tree | 45fe87fed1433fb77aad36fb0db4a9cf175d4a1b | |
| parent | 100abeb812ac3ec59efcad1cb062b462f2e2d2a6 (diff) | |
DOC: fix fake import for API docs
Switching to out-of-line ABI mode (#102) broke this.
| -rw-r--r-- | doc/conf.py | 4 | ||||
| -rw-r--r-- | doc/fake__sounddevice.py (renamed from doc/fake_cffi.py) | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/doc/conf.py b/doc/conf.py index 8474a95..8c2d75e 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -23,8 +23,8 @@ sys.path.insert(0, os.path.abspath('..')) sys.path.insert(0, os.path.abspath('.')) # Fake import to avoid actually loading CFFI and the PortAudio library -import fake_cffi -sys.modules['cffi'] = sys.modules['fake_cffi'] +import fake__sounddevice +sys.modules['_sounddevice'] = sys.modules['fake__sounddevice'] # -- General configuration ------------------------------------------------ diff --git a/doc/fake_cffi.py b/doc/fake__sounddevice.py index 24b1916..d72f15f 100644 --- a/doc/fake_cffi.py +++ b/doc/fake__sounddevice.py @@ -1,18 +1,18 @@ """Mock module for Sphinx autodoc.""" -class FFI(object): +class ffi(object): NULL = NotImplemented I_AM_FAKE = True # This is used for the documentation of "default" - def cdef(self, _): - pass - def dlopen(self, _): return FakeLibrary() +ffi = ffi() + + class FakeLibrary(object): # from portaudio.h: |
