Skip to content

Commit 6f85750

Browse files
committed
Skip doctests for removed functions
1 parent c943291 commit 6f85750

File tree

1 file changed

+17
-16
lines changed

1 file changed

+17
-16
lines changed

numpy/_core/strings.py

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1172,11 +1172,11 @@ def _join(sep, seq):
11721172
11731173
Examples
11741174
--------
1175-
>>> np.strings.join('-', 'osd')
1176-
array('o-s-d', dtype='<U5')
1175+
>>> np.strings.join('-', 'osd') # doctest: +SKIP
1176+
array('o-s-d', dtype='<U5') # doctest: +SKIP
11771177
1178-
>>> np.strings.join(['-', '.'], ['ghc', 'osd'])
1179-
array(['g-h-c', 'o.s.d'], dtype='<U5')
1178+
>>> np.strings.join(['-', '.'], ['ghc', 'osd']) # doctest: +SKIP
1179+
array(['g-h-c', 'o.s.d'], dtype='<U5') # doctest: +SKIP
11801180
11811181
"""
11821182
return _to_bytes_or_str_array(
@@ -1209,11 +1209,11 @@ def _split(a, sep=None, maxsplit=None):
12091209
Examples
12101210
--------
12111211
>>> x = np.array("Numpy is nice!")
1212-
>>> np.strings.split(x, " ")
1213-
array(list(['Numpy', 'is', 'nice!']), dtype=object)
1212+
>>> np.strings.split(x, " ") # doctest: +SKIP
1213+
array(list(['Numpy', 'is', 'nice!']), dtype=object) # doctest: +SKIP
12141214
1215-
>>> np.strings.split(x, " ", 1)
1216-
array(list(['Numpy', 'is nice!']), dtype=object)
1215+
>>> np.strings.split(x, " ", 1) # doctest: +SKIP
1216+
array(list(['Numpy', 'is nice!']), dtype=object) # doctest: +SKIP
12171217
12181218
See Also
12191219
--------
@@ -1259,8 +1259,9 @@ def _rsplit(a, sep=None, maxsplit=None):
12591259
Examples
12601260
--------
12611261
>>> a = np.array(['aAaAaA', 'abBABba'])
1262-
>>> np.strings.rsplit(a, 'A')
1263-
array([list(['a', 'a', 'a', '']), list(['abB', 'Bba'])], dtype=object)
1262+
>>> np.strings.rsplit(a, 'A') # doctest: +SKIP
1263+
array([list(['a', 'a', 'a', '']), # doctest: +SKIP
1264+
list(['abB', 'Bba'])], dtype=object) # doctest: +SKIP
12641265
12651266
"""
12661267
# This will return an array of lists of different sizes, so we
@@ -1327,8 +1328,8 @@ def _partition(a, sep):
13271328
Examples
13281329
--------
13291330
>>> x = np.array(["Numpy is nice!"])
1330-
>>> np.strings.partition(x, " ")
1331-
array([['Numpy', ' ', 'is nice!']], dtype='<U8')
1331+
>>> np.strings.partition(x, " ") # doctest: +SKIP
1332+
array([['Numpy', ' ', 'is nice!']], dtype='<U8') # doctest: +SKIP
13321333
13331334
See Also
13341335
--------
@@ -1372,10 +1373,10 @@ def _rpartition(a, sep):
13721373
Examples
13731374
--------
13741375
>>> a = np.array(['aAaAaA', ' aA ', 'abBABba'])
1375-
>>> np.strings.rpartition(a, 'A')
1376-
array([['aAaAa', 'A', ''],
1377-
[' a', 'A', ' '],
1378-
['abB', 'A', 'Bba']], dtype='<U5')
1376+
>>> np.strings.rpartition(a, 'A') # doctest: +SKIP
1377+
array([['aAaAa', 'A', ''], # doctest: +SKIP
1378+
[' a', 'A', ' '], # doctest: +SKIP
1379+
['abB', 'A', 'Bba']], dtype='<U5') # doctest: +SKIP
13791380
13801381
"""
13811382
return _to_bytes_or_str_array(

0 commit comments

Comments
 (0)