summaryrefslogtreecommitdiff
path: root/tests/functional/n/non_ascii_name_class/non_ascii_name_class.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/functional/n/non_ascii_name_class/non_ascii_name_class.py')
-rw-r--r--tests/functional/n/non_ascii_name_class/non_ascii_name_class.py23
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/functional/n/non_ascii_name_class/non_ascii_name_class.py b/tests/functional/n/non_ascii_name_class/non_ascii_name_class.py
new file mode 100644
index 000000000..edcdae643
--- /dev/null
+++ b/tests/functional/n/non_ascii_name_class/non_ascii_name_class.py
@@ -0,0 +1,23 @@
+""" Non ASCII char in class name
+
+Note that the end line parameter here seems to be off.
+We would expect it to be the same as the start, as we only refer
+to the class Name and not the complete class definition.
+But this is not possible atm with pylint.
+"""
+# pylint: disable=too-few-public-methods
+
+
+class НoldIt: # [non-ascii-name]
+ """nice classs"""
+
+ def public(self):
+ """do something"""
+ print(self)
+
+
+def main():
+ """Main function"""
+ # Usage should not raise a second error
+ foobar = НoldIt()
+ print(foobar)