diff options
| author | Tim Graham <timograham@gmail.com> | 2013-10-10 09:35:56 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2013-10-10 09:35:56 -0400 |
| commit | cec11a3336c730e6dc2f1966fee749cc830e97c0 (patch) | |
| tree | 014c34809c0d39ca63c711e6168d297b9de013b3 /django/test | |
| parent | ff9e8eccf89fc1dce441736c39dcb6e218ca8940 (diff) | |
Used "is" for comparisons with None.
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__: |
