Current Path: > > opt > cloudlinux > venv > lib64 > python3.11 > site-packages > pyflakes > test
Operation : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 Software : Apache Server IP : 162.0.232.56 | Your IP: 216.73.216.111 Domains : 1034 Domain(s) Permission : [ 0755 ]
Name | Type | Size | Last Modified | Actions |
---|---|---|---|---|
__pycache__ | Directory | - | - | |
__init__.py | File | 0 bytes | April 17 2025 13:10:58. | |
harness.py | File | 1004 bytes | April 17 2025 13:10:58. | |
test_api.py | File | 26904 bytes | April 17 2025 13:10:58. | |
test_builtin.py | File | 582 bytes | April 17 2025 13:10:58. | |
test_checker.py | File | 5920 bytes | April 17 2025 13:10:58. | |
test_code_segment.py | File | 4496 bytes | April 17 2025 13:10:58. | |
test_dict.py | File | 5271 bytes | April 17 2025 13:10:58. | |
test_doctests.py | File | 12856 bytes | April 17 2025 13:10:58. | |
test_imports.py | File | 33703 bytes | April 17 2025 13:10:58. | |
test_is_literal.py | File | 4573 bytes | April 17 2025 13:10:58. | |
test_match.py | File | 2097 bytes | April 17 2025 13:10:58. | |
test_other.py | File | 51690 bytes | April 17 2025 13:10:58. | |
test_type_annotations.py | File | 20301 bytes | April 17 2025 13:10:58. | |
test_undefined_names.py | File | 23565 bytes | April 17 2025 13:10:58. |
from pyflakes.messages import IsLiteral from pyflakes.test.harness import TestCase class Test(TestCase): def test_is_str(self): self.flakes(""" x = 'foo' if x is 'foo': pass """, IsLiteral) def test_is_bytes(self): self.flakes(""" x = b'foo' if x is b'foo': pass """, IsLiteral) def test_is_unicode(self): self.flakes(""" x = u'foo' if x is u'foo': pass """, IsLiteral) def test_is_int(self): self.flakes(""" x = 10 if x is 10: pass """, IsLiteral) def test_is_true(self): self.flakes(""" x = True if x is True: pass """) def test_is_false(self): self.flakes(""" x = False if x is False: pass """) def test_is_not_str(self): self.flakes(""" x = 'foo' if x is not 'foo': pass """, IsLiteral) def test_is_not_bytes(self): self.flakes(""" x = b'foo' if x is not b'foo': pass """, IsLiteral) def test_is_not_unicode(self): self.flakes(""" x = u'foo' if x is not u'foo': pass """, IsLiteral) def test_is_not_int(self): self.flakes(""" x = 10 if x is not 10: pass """, IsLiteral) def test_is_not_true(self): self.flakes(""" x = True if x is not True: pass """) def test_is_not_false(self): self.flakes(""" x = False if x is not False: pass """) def test_left_is_str(self): self.flakes(""" x = 'foo' if 'foo' is x: pass """, IsLiteral) def test_left_is_bytes(self): self.flakes(""" x = b'foo' if b'foo' is x: pass """, IsLiteral) def test_left_is_unicode(self): self.flakes(""" x = u'foo' if u'foo' is x: pass """, IsLiteral) def test_left_is_int(self): self.flakes(""" x = 10 if 10 is x: pass """, IsLiteral) def test_left_is_true(self): self.flakes(""" x = True if True is x: pass """) def test_left_is_false(self): self.flakes(""" x = False if False is x: pass """) def test_left_is_not_str(self): self.flakes(""" x = 'foo' if 'foo' is not x: pass """, IsLiteral) def test_left_is_not_bytes(self): self.flakes(""" x = b'foo' if b'foo' is not x: pass """, IsLiteral) def test_left_is_not_unicode(self): self.flakes(""" x = u'foo' if u'foo' is not x: pass """, IsLiteral) def test_left_is_not_int(self): self.flakes(""" x = 10 if 10 is not x: pass """, IsLiteral) def test_left_is_not_true(self): self.flakes(""" x = True if True is not x: pass """) def test_left_is_not_false(self): self.flakes(""" x = False if False is not x: pass """) def test_chained_operators_is_true(self): self.flakes(""" x = 5 if x is True < 4: pass """) def test_chained_operators_is_str(self): self.flakes(""" x = 5 if x is 'foo' < 4: pass """, IsLiteral) def test_chained_operators_is_true_end(self): self.flakes(""" x = 5 if 4 < x is True: pass """) def test_chained_operators_is_str_end(self): self.flakes(""" x = 5 if 4 < x is 'foo': pass """, IsLiteral) def test_is_tuple_constant(self): self.flakes('''\ x = 5 if x is (): pass ''', IsLiteral) def test_is_tuple_constant_containing_constants(self): self.flakes('''\ x = 5 if x is (1, '2', True, (1.5, ())): pass ''', IsLiteral) def test_is_tuple_containing_variables_ok(self): # a bit nonsensical, but does not trigger a SyntaxWarning self.flakes('''\ x = 5 if x is (x,): pass ''')
SILENT KILLER Tool