summaryrefslogtreecommitdiff
path: root/tests/functional/a
diff options
context:
space:
mode:
authorDaniƫl van Noord <13665637+DanielNoord@users.noreply.github.com>2021-08-06 10:00:32 +0200
committerGitHub <noreply@github.com>2021-08-06 10:00:32 +0200
commit865765ca78b43829d98c6c4424b6364c63925186 (patch)
treec8eaf3b30a0172cfc3b622350f4bcb7a066ef93b /tests/functional/a
parent7d84a322afb129045b5c82790bad56b7d7f4fbc3 (diff)
downloadpylint-git-865765ca78b43829d98c6c4424b6364c63925186.tar.gz
Add ``redundant-u-string-prefix`` checker (#4804)
* Add ``redundant-u-string-prefix`` checker This adds a checker for u-prefixes for strings, as used in Python 2. It only work in python 3.8 and above. Closes #4102
Diffstat (limited to 'tests/functional/a')
-rw-r--r--tests/functional/a/anomalous_unicode_escape_py3.py2
-rw-r--r--tests/functional/a/assign/assigning_non_slot.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/functional/a/anomalous_unicode_escape_py3.py b/tests/functional/a/anomalous_unicode_escape_py3.py
index 18ebdf5f6..7c863097b 100644
--- a/tests/functional/a/anomalous_unicode_escape_py3.py
+++ b/tests/functional/a/anomalous_unicode_escape_py3.py
@@ -1,4 +1,4 @@
-# pylint:disable=pointless-string-statement
+# pylint:disable=pointless-string-statement, redundant-u-string-prefix
"""Test for backslash escapes in byte vs unicode strings"""
# Would be valid in Unicode, but probably not what you want otherwise
diff --git a/tests/functional/a/assign/assigning_non_slot.py b/tests/functional/a/assign/assigning_non_slot.py
index 600a2d5a2..4789014ff 100644
--- a/tests/functional/a/assign/assigning_non_slot.py
+++ b/tests/functional/a/assign/assigning_non_slot.py
@@ -1,7 +1,7 @@
""" Checks assigning attributes not found in class slots
will trigger assigning-non-slot warning.
"""
-# pylint: disable=too-few-public-methods, no-init, missing-docstring, no-absolute-import, import-error, useless-object-inheritance
+# pylint: disable=too-few-public-methods, no-init, missing-docstring, no-absolute-import, import-error, useless-object-inheritance, redundant-u-string-prefix
from collections import deque
from missing import Unknown