diff options
author | Kound <carli.freudenberg@energymeteo.de> | 2022-01-13 12:26:08 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-13 12:26:08 +0100 |
commit | aaa3770d325223ee5c13a637f09ff16e5bbc5851 (patch) | |
tree | e49b3380195a0b2ff81c7967c328e0ecac46d96f /tests/regrtest_data | |
parent | 6bbb7d5a0f530171faa3ea2271d9d1edab0c902b (diff) | |
download | pylint-git-aaa3770d325223ee5c13a637f09ff16e5bbc5851.tar.gz |
Add a checker for misleading unicode (#5311)
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
Diffstat (limited to 'tests/regrtest_data')
-rw-r--r-- | tests/regrtest_data/unicode/invisible_function.txt | 15 | ||||
-rw-r--r-- | tests/regrtest_data/unicode/pep_bidirectional_utf_16_bom.txt | bin | 0 -> 215 bytes | |||
-rw-r--r-- | tests/regrtest_data/unicode/pep_bidirectional_utf_16_le_no_bom.txt | bin | 0 -> 211 bytes | |||
-rw-r--r-- | tests/regrtest_data/unicode/pep_bidirectional_utf_32_bom.txt | bin | 0 -> 429 bytes | |||
-rw-r--r-- | tests/regrtest_data/unicode/pep_bidirectional_utf_32_le_no_bom.txt | bin | 0 -> 421 bytes |
5 files changed, 15 insertions, 0 deletions
diff --git a/tests/regrtest_data/unicode/invisible_function.txt b/tests/regrtest_data/unicode/invisible_function.txt new file mode 100644 index 000000000..ebec0247e --- /dev/null +++ b/tests/regrtest_data/unicode/invisible_function.txt @@ -0,0 +1,15 @@ +#!/usr/bin/env python3 + +def is_admin(): + return True + +def is_admin(): + return False + +def main(): + if is_admin(): + print("You are an admin.") + + +if __name__ == '__main__': + main() diff --git a/tests/regrtest_data/unicode/pep_bidirectional_utf_16_bom.txt b/tests/regrtest_data/unicode/pep_bidirectional_utf_16_bom.txt Binary files differnew file mode 100644 index 000000000..67cce9b52 --- /dev/null +++ b/tests/regrtest_data/unicode/pep_bidirectional_utf_16_bom.txt diff --git a/tests/regrtest_data/unicode/pep_bidirectional_utf_16_le_no_bom.txt b/tests/regrtest_data/unicode/pep_bidirectional_utf_16_le_no_bom.txt Binary files differnew file mode 100644 index 000000000..70610fcbb --- /dev/null +++ b/tests/regrtest_data/unicode/pep_bidirectional_utf_16_le_no_bom.txt diff --git a/tests/regrtest_data/unicode/pep_bidirectional_utf_32_bom.txt b/tests/regrtest_data/unicode/pep_bidirectional_utf_32_bom.txt Binary files differnew file mode 100644 index 000000000..afa27e9ef --- /dev/null +++ b/tests/regrtest_data/unicode/pep_bidirectional_utf_32_bom.txt diff --git a/tests/regrtest_data/unicode/pep_bidirectional_utf_32_le_no_bom.txt b/tests/regrtest_data/unicode/pep_bidirectional_utf_32_le_no_bom.txt Binary files differnew file mode 100644 index 000000000..dab9046fa --- /dev/null +++ b/tests/regrtest_data/unicode/pep_bidirectional_utf_32_le_no_bom.txt |