summaryrefslogtreecommitdiff
path: root/tests/functional
diff options
context:
space:
mode:
Diffstat (limited to 'tests/functional')
-rw-r--r--tests/functional/a/abstract/abstract_method.py2
-rw-r--r--tests/functional/a/access/access_member_before_definition.py2
-rw-r--r--tests/functional/a/arguments.py2
-rw-r--r--tests/functional/a/arguments_out_of_order.py2
-rw-r--r--tests/functional/b/bad_reversed_sequence.py2
-rw-r--r--tests/functional/c/classes_meth_could_be_a_function.py2
-rw-r--r--tests/functional/c/continue_in_finally.py2
-rw-r--r--tests/functional/d/deprecated/dataclass_typecheck.py2
-rw-r--r--tests/functional/ext/code_style/code_style_consider_using_assignment_expr.py2
-rw-r--r--tests/functional/i/invalid/s/invalid_sequence_index.py2
-rw-r--r--tests/functional/l/long_utf8_lines.py4
-rw-r--r--tests/functional/n/no/no_member_if_statements.py4
-rw-r--r--tests/functional/n/non/non_iterator_returned.py2
-rw-r--r--tests/functional/p/pattern_matching.py2
-rw-r--r--tests/functional/r/return_outside_function.py2
-rw-r--r--tests/functional/s/string/string_formatting.py4
-rw-r--r--tests/functional/u/undefined/undefined_variable.py2
-rw-r--r--tests/functional/u/useless/useless_else_on_loop.py2
-rw-r--r--tests/functional/y/yield_from_outside_func.py2
-rw-r--r--tests/functional/y/yield_outside_func.py2
20 files changed, 23 insertions, 23 deletions
diff --git a/tests/functional/a/abstract/abstract_method.py b/tests/functional/a/abstract/abstract_method.py
index d58f68036..be924469d 100644
--- a/tests/functional/a/abstract/abstract_method.py
+++ b/tests/functional/a/abstract/abstract_method.py
@@ -48,7 +48,7 @@ class Concrete(Abstract): # [abstract-method]
"""Concrete class"""
def aaaa(self):
- """overidden form Abstract"""
+ """overridden form Abstract"""
class Structure(object, metaclass=abc.ABCMeta):
diff --git a/tests/functional/a/access/access_member_before_definition.py b/tests/functional/a/access/access_member_before_definition.py
index d8a97b4c7..91389a82a 100644
--- a/tests/functional/a/access/access_member_before_definition.py
+++ b/tests/functional/a/access/access_member_before_definition.py
@@ -23,7 +23,7 @@ class Bbbb(object):
def catchme(self, attr):
- """no AttributeError catched"""
+ """no AttributeError caught"""
try:
return self._repo # [access-member-before-definition]
except ValueError:
diff --git a/tests/functional/a/arguments.py b/tests/functional/a/arguments.py
index 9e66ff18d..df9290345 100644
--- a/tests/functional/a/arguments.py
+++ b/tests/functional/a/arguments.py
@@ -38,7 +38,7 @@ def function_3_args(first_argument, second_argument, third_argument):
return first_argument, second_argument, third_argument
def function_default_arg(one=1, two=2):
- """fonction with default value"""
+ """function with default value"""
return two, one
diff --git a/tests/functional/a/arguments_out_of_order.py b/tests/functional/a/arguments_out_of_order.py
index 600664c94..5538a1dba 100644
--- a/tests/functional/a/arguments_out_of_order.py
+++ b/tests/functional/a/arguments_out_of_order.py
@@ -7,7 +7,7 @@ def function_3_args(first_argument, second_argument, third_argument):
def function_default_arg(one=1, two=2):
- """fonction with default value"""
+ """function with default value"""
return two, one
diff --git a/tests/functional/b/bad_reversed_sequence.py b/tests/functional/b/bad_reversed_sequence.py
index 101123330..2450d960b 100644
--- a/tests/functional/b/bad_reversed_sequence.py
+++ b/tests/functional/b/bad_reversed_sequence.py
@@ -32,7 +32,7 @@ class ThirdBadReversed(dict):
""" dict subclass """
def uninferable(seq):
- """ This can't be infered at this moment,
+ """ This can't be inferred at this moment,
make sure we don't have a false positive.
"""
return reversed(seq)
diff --git a/tests/functional/c/classes_meth_could_be_a_function.py b/tests/functional/c/classes_meth_could_be_a_function.py
index 94103a324..3abda55a0 100644
--- a/tests/functional/c/classes_meth_could_be_a_function.py
+++ b/tests/functional/c/classes_meth_could_be_a_function.py
@@ -2,7 +2,7 @@
"""
#2479
-R0201 (formely W0212), Method could be a function shouldn't be emitted in case
+R0201 (formerly W0212), Method could be a function shouldn't be emitted in case
like factory method pattern
"""
__revision__ = 1
diff --git a/tests/functional/c/continue_in_finally.py b/tests/functional/c/continue_in_finally.py
index bb1fcbab1..dcdac8f8d 100644
--- a/tests/functional/c/continue_in_finally.py
+++ b/tests/functional/c/continue_in_finally.py
@@ -1,4 +1,4 @@
-"""Test that `continue` is catched when met inside a `finally` clause."""
+"""Test that `continue` is caught when met inside a `finally` clause."""
# pylint: disable=missing-docstring, lost-exception, broad-except
diff --git a/tests/functional/d/deprecated/dataclass_typecheck.py b/tests/functional/d/deprecated/dataclass_typecheck.py
index 9a2be2fb8..0de6e43b3 100644
--- a/tests/functional/d/deprecated/dataclass_typecheck.py
+++ b/tests/functional/d/deprecated/dataclass_typecheck.py
@@ -104,7 +104,7 @@ class Test2(metaclass=obj.attr1): # [invalid-metaclass]
{}[obj.attr1] = 1
{}[obj.attr5] = 1 # [unhashable-dict-key]
-for k, v in obj.attr5: # TODO: Should be an dict-iter-missing-items error
+for k, v in obj.attr5: # TODO: Should be a dict-iter-missing-items error
print(k, v)
__name__ = obj.attr0
diff --git a/tests/functional/ext/code_style/code_style_consider_using_assignment_expr.py b/tests/functional/ext/code_style/code_style_consider_using_assignment_expr.py
index 60d3f4d1b..4f9a83700 100644
--- a/tests/functional/ext/code_style/code_style_consider_using_assignment_expr.py
+++ b/tests/functional/ext/code_style/code_style_consider_using_assignment_expr.py
@@ -4,7 +4,7 @@ a1 = 2
if a1: # [consider-using-assignment-expr]
...
-# Do not suggest assignement expressions if assignment spans multiple lines
+# Do not suggest assignment expressions if assignment spans multiple lines
a2 = (
1,
)
diff --git a/tests/functional/i/invalid/s/invalid_sequence_index.py b/tests/functional/i/invalid/s/invalid_sequence_index.py
index d11155c02..36a0fae22 100644
--- a/tests/functional/i/invalid/s/invalid_sequence_index.py
+++ b/tests/functional/i/invalid/s/invalid_sequence_index.py
@@ -129,7 +129,7 @@ def function19():
TESTLIST[0] = 0 # no error
def function20():
- """Delete with None and integer indicies"""
+ """Delete with None and integer indices"""
del TESTLIST[None] # [invalid-sequence-index]
del TESTLIST[0] # no error
diff --git a/tests/functional/l/long_utf8_lines.py b/tests/functional/l/long_utf8_lines.py
index 815759fe5..138e4e299 100644
--- a/tests/functional/l/long_utf8_lines.py
+++ b/tests/functional/l/long_utf8_lines.py
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
-"""this utf-8 doc string have some non ASCII caracters like 'é', or '¢»ß'"""
-### check also comments with some more non ASCII caracters like 'é' or '¢»ß'
+"""this utf-8 doc string have some non ASCII characters like 'é', or '¢»ß'"""
+### check also comments with some more non ASCII characters like 'é' or '¢»ß'
__revision__ = 1100
diff --git a/tests/functional/n/no/no_member_if_statements.py b/tests/functional/n/no/no_member_if_statements.py
index ad87e9950..d26c5c483 100644
--- a/tests/functional/n/no/no_member_if_statements.py
+++ b/tests/functional/n/no/no_member_if_statements.py
@@ -48,9 +48,9 @@ try:
subprocess.check_call(['ls', '-']) # Deliberately made error in this line
except Exception as err:
if isinstance(err, subprocess.CalledProcessError):
- print(f'Subprocess error occured. Return code: {err.returncode}')
+ print(f'Subprocess error occurred. Return code: {err.returncode}')
else:
- print(f'An error occured: {str(err)}')
+ print(f'An error occurred: {str(err)}')
raise
diff --git a/tests/functional/n/non/non_iterator_returned.py b/tests/functional/n/non/non_iterator_returned.py
index 4d0dd2a39..294e6da01 100644
--- a/tests/functional/n/non/non_iterator_returned.py
+++ b/tests/functional/n/non/non_iterator_returned.py
@@ -68,7 +68,7 @@ class FileBasedIterator(object):
if self.file is not None:
self.file.close()
self.file = open(self.path, encoding="utf-8")
- # self file has two infered values: None and <instance of 'file'>
+ # self file has two inferred values: None and <instance of 'file'>
# we don't want to emit error in this case
return self.file
diff --git a/tests/functional/p/pattern_matching.py b/tests/functional/p/pattern_matching.py
index 4b3a71643..4a5884812 100644
--- a/tests/functional/p/pattern_matching.py
+++ b/tests/functional/p/pattern_matching.py
@@ -8,7 +8,7 @@ class Point2D:
self.y = y
-# Don't emit false-positive 'unused-variable' and 'undefined-varibable'
+# Don't emit false-positive 'unused-variable' and 'undefined-variable'
var = 42
match var:
case [*rest1]:
diff --git a/tests/functional/r/return_outside_function.py b/tests/functional/r/return_outside_function.py
index 449dafd68..93ec22e53 100644
--- a/tests/functional/r/return_outside_function.py
+++ b/tests/functional/r/return_outside_function.py
@@ -1,2 +1,2 @@
-"""This is gramatically correct, but it's still a SyntaxError"""
+"""This is grammatically correct, but it's still a SyntaxError"""
return # [return-outside-function]
diff --git a/tests/functional/s/string/string_formatting.py b/tests/functional/s/string/string_formatting.py
index 8372a4373..b72e9f676 100644
--- a/tests/functional/s/string/string_formatting.py
+++ b/tests/functional/s/string/string_formatting.py
@@ -27,7 +27,7 @@ class Getitem(object):
class ReturnYes(object):
- """ can't be properly infered """
+ """ can't be properly inferred """
missing = Missing()
@@ -160,7 +160,7 @@ def issue338():
class Crash(namedtuple("C", "foo bar")):
""" Looking for attributes in __str__ will crash,
- because EmptyNodes can't be infered.
+ because EmptyNodes can't be inferred.
"""
def __str__(self):
return "{0.foo}: {0.bar}".format(self)
diff --git a/tests/functional/u/undefined/undefined_variable.py b/tests/functional/u/undefined/undefined_variable.py
index 0b92a495d..b4e1f8335 100644
--- a/tests/functional/u/undefined/undefined_variable.py
+++ b/tests/functional/u/undefined/undefined_variable.py
@@ -24,7 +24,7 @@ DEFINED[__revision__] = OTHER = 'move this is astroid test'
OTHER += '$'
def bad_default(var, default=unknown2): # [undefined-variable]
- """function with defaut arg's value set to an unexistant name"""
+ """function with default arg's value set to an nonexistent name"""
print(var, default)
print(xxxx) # [undefined-variable]
augvar += 1 # [undefined-variable]
diff --git a/tests/functional/u/useless/useless_else_on_loop.py b/tests/functional/u/useless/useless_else_on_loop.py
index d686f4658..0bd3dff67 100644
--- a/tests/functional/u/useless/useless_else_on_loop.py
+++ b/tests/functional/u/useless/useless_else_on_loop.py
@@ -3,7 +3,7 @@ from __future__ import print_function
__revision__ = 0
def test_return_for():
- """else + return is not accetable."""
+ """else + return is not acceptable."""
for i in range(10):
if i % 2:
return i
diff --git a/tests/functional/y/yield_from_outside_func.py b/tests/functional/y/yield_from_outside_func.py
index e2db90c94..6c539db58 100644
--- a/tests/functional/y/yield_from_outside_func.py
+++ b/tests/functional/y/yield_from_outside_func.py
@@ -1,4 +1,4 @@
-"""This is gramatically correct, but it's still a SyntaxError"""
+"""This is grammatically correct, but it's still a SyntaxError"""
yield from [1, 2] # [yield-outside-function]
LAMBDA_WITH_YIELD = lambda: (yield from [1, 2])
diff --git a/tests/functional/y/yield_outside_func.py b/tests/functional/y/yield_outside_func.py
index 5824bc0c7..726a8e13e 100644
--- a/tests/functional/y/yield_outside_func.py
+++ b/tests/functional/y/yield_outside_func.py
@@ -1,4 +1,4 @@
-"""This is gramatically correct, but it's still a SyntaxError"""
+"""This is grammatically correct, but it's still a SyntaxError"""
yield 1 # [yield-outside-function]
LAMBDA_WITH_YIELD = lambda: (yield)