upgpkg: ocaml-topkg 1.0.5-2
[arch-packages.git] / python-nose / repos / extra-any / python-nose-py38.patch
blob74bd9a84fec53996571f6f0749937db5892f9302
1 diff --git a/nose/config.py b/nose/config.py
2 index 125eb55..ad01e61 100644
3 --- a/nose/config.py
4 +++ b/nose/config.py
5 @@ -139,7 +139,7 @@ class ConfiguredDefaultsOptionParser(object):
8 class Config(object):
9 - """nose configuration.
10 + r"""nose configuration.
12 Instances of Config are used throughout nose to configure
13 behavior, including plugin lists. Here are the default values for
14 diff --git a/nose/ext/dtcompat.py b/nose/ext/dtcompat.py
15 index 332cf08..b5698c5 100644
16 --- a/nose/ext/dtcompat.py
17 +++ b/nose/ext/dtcompat.py
18 @@ -683,7 +683,7 @@ class DocTestParser:
20 # This regular expression finds the indentation of every non-blank
21 # line in a string.
22 - _INDENT_RE = re.compile('^([ ]*)(?=\S)', re.MULTILINE)
23 + _INDENT_RE = re.compile(r'^([ ]*)(?=\S)', re.MULTILINE)
25 def _min_indent(self, s):
26 "Return the minimum indentation of any non-blank line in `s`"
27 @@ -1018,7 +1018,7 @@ class DocTestFinder:
28 if lineno is not None:
29 if source_lines is None:
30 return lineno+1
31 - pat = re.compile('(^|.*:)\s*\w*("|\')')
32 + pat = re.compile(r'(^|.*:)\s*\w*("|\')')
33 for lineno in range(lineno, len(source_lines)):
34 if pat.match(source_lines[lineno]):
35 return lineno
36 @@ -1427,11 +1427,11 @@ class OutputChecker:
37 # blank line, unless the DONT_ACCEPT_BLANKLINE flag is used.
38 if not (optionflags & DONT_ACCEPT_BLANKLINE):
39 # Replace <BLANKLINE> in want with a blank line.
40 - want = re.sub('(?m)^%s\s*?$' % re.escape(BLANKLINE_MARKER),
41 + want = re.sub(r'(?m)^%s\s*?$' % re.escape(BLANKLINE_MARKER),
42 '', want)
43 # If a line in got contains only spaces, then remove the
44 # spaces.
45 - got = re.sub('(?m)^\s*?$', '', got)
46 + got = re.sub(r'(?m)^\s*?$', '', got)
47 if got == want:
48 return True
50 diff --git a/nose/inspector.py b/nose/inspector.py
51 index a6c4a3e..ad22c0c 100644
52 --- a/nose/inspector.py
53 +++ b/nose/inspector.py
54 @@ -107,7 +107,7 @@ def tbsource(tb, context=6):
57 def find_inspectable_lines(lines, pos):
58 - """Find lines in home that are inspectable.
59 + r"""Find lines in home that are inspectable.
61 Walk back from the err line up to 3 lines, but don't walk back over
62 changes in indent level.