Skip to content

Commit f49990a

Browse files
authored
Merge pull request #169 from tlvu/fix-doc-skipping-certain-output-types
doc: fix skipping certain output types
2 parents f9e8271 + a2725ca commit f49990a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docs/source/index.ipynb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,8 @@
568568
"outputs": [],
569569
"source": [
570570
"def pytest_collectstart(collector):\n",
571-
" collector.skip_compare += 'text/html', 'application/javascript', 'stderr',"
571+
" if collector.fspath and collector.fspath.ext == '.ipynb':\n",
572+
" collector.skip_compare += 'text/html', 'application/javascript', 'stderr',"
572573
]
573574
}
574575
],
@@ -588,7 +589,7 @@
588589
"name": "python",
589590
"nbconvert_exporter": "python",
590591
"pygments_lexer": "ipython3",
591-
"version": "3.8.6"
592+
"version": "3.7.10"
592593
}
593594
},
594595
"nbformat": 4,

0 commit comments

Comments
 (0)