8000 Closes #12202 (#wimlds); Testing doctest direc.: removed DONT_ACCEPT_… · CatChenal/scikit-learn@e38bca9 · GitHub
[go: up one dir, main page]

Skip to content

Commit e38bca9

Browse files
committed
Closes scikit-learn#12202 (#wimlds); Testing doctest direc.: removed DONT_ACCEPT_BLANKLINE (@jnothmam, @reshamas)
1 parent aeae3b0 commit e38bca9

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

sklearn/feature_extraction/image.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -351,14 +351,12 @@ def extract_patches_2d(image, patch_size, max_patches=None, random_state=None):
351351
Patches shape: (272214, 2, 2, 3)
352352
>>>
353353
>>> # Here are just two of these patches:
354-
>>> print(patches[1]) # doctest: +NORMALIZE_WHITESPACE \
355-
+DONT_ACCEPT_BLANKLINE
354+
>>> print(patches[1]) # doctest: +NORMALIZE_WHITESPACE
356355
[[[174 201 231]
357356
[174 201 231]]
358357
[[173 200 230]
359358
[173 200 230]]]
360-
>>> print(patches[800])# doctest: +NORMALIZE_WHITESPACE \
361-
+DONT_ACCEPT_BLANKLINE
359+
>>> print(patches[800])# doctest: +NORMALIZE_WHITESPACE
362360
[[[187 214 243]
363361
[188 215 244]]
364362
[[187 214 243]

0 commit comments

Comments
 (0)
0