diff options
Diffstat (limited to 'django/test')
| -rw-r--r-- | django/test/_doctest.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/test/_doctest.py b/django/test/_doctest.py index 3f6962dc17..4f4837f3c6 100644 --- a/django/test/_doctest.py +++ b/django/test/_doctest.py @@ -1345,7 +1345,7 @@ class DocTestRunner: # exception message will be in group(2) m = re.match(r'(.*)\.(\w+:.+\s)', exc_msg) # make sure there's a match - if m != None: + if m is not None: f_name = m.group(1) # check to see if m.group(1) contains the module name if f_name == exception[0].__module__: |
