Skip to content

Commit 4a12309

Browse files
authored
doctest - exclude third-party sources in node_modules (#7011)
`cirq-web` tests may store external Python sources in node_modules. Exclude them from the doctest test. Also remove obsolete pattern for 'cirq-google/cirq_google/engine/client/' as that directory does not exist anymore.
1 parent b5377fc commit 4a12309

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

dev_tools/docs/run_doctest.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -227,11 +227,10 @@ def main():
227227

228228
file_names = glob.glob('cirq**/cirq**/**/*.py', recursive=True)
229229
assert file_names
230-
# Remove the engine client code.
231230
excluded = [
232-
'cirq-google/cirq_google/engine/client/',
233-
'cirq-google/cirq_google/cloud/',
234231
'cirq-google/cirq_google/api/',
232+
'cirq-google/cirq_google/cloud/',
233+
'cirq-web/cirq_ts/node_modules/',
235234
]
236235
file_names = [
237236
f

0 commit comments

Comments
 (0)