Skip to content

Commit 60dbadd

Browse files
committed
DOC: fix fake import for API docs
Switching to out-of-line ABI mode (#102) broke this.
1 parent 100abeb commit 60dbadd

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

doc/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
sys.path.insert(0, os.path.abspath('.'))
2424

2525
# Fake import to avoid actually loading CFFI and the PortAudio library
26-
import fake_cffi
27-
sys.modules['cffi'] = sys.modules['fake_cffi']
26+
import fake__sounddevice
27+
sys.modules['_sounddevice'] = sys.modules['fake__sounddevice']
2828

2929
# -- General configuration ------------------------------------------------
3030

doc/fake_cffi.py renamed to doc/fake__sounddevice.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
"""Mock module for Sphinx autodoc."""
22

33

4-
class FFI(object):
4+
class ffi(object):
55

66
NULL = NotImplemented
77
I_AM_FAKE = True # This is used for the documentation of "default"
88

9-
def cdef(self, _):
10-
pass
11-
129
def dlopen(self, _):
1310
return FakeLibrary()
1411

1512

13+
ffi = ffi()
14+
15+
1616
class FakeLibrary(object):
1717

1818
# from portaudio.h:

0 commit comments

Comments
 (0)