Marcel Telka
2023-11-27 c9b1712b150502e70e18fff73addf857cbbb2bb2
commit | author | age
c9b171 1 --- flake8-bugbear-23.11.26/tests/test_bugbear.py.orig
MT 2 +++ flake8-bugbear-23.11.26/tests/test_bugbear.py
3 @@ -870,19 +870,8 @@
444a05 4  
MT 5  
6  class TestFuzz(unittest.TestCase):
7 -    # TODO: enable this test on py312 once hypothesmith supports py312
8 -    if sys.version_info < (3, 12):
9 -        from hypothesis import HealthCheck, given, settings
10 -        from hypothesmith import from_grammar
11 -
12 -        @settings(suppress_health_check=[HealthCheck.too_slow])
13 -        @given(from_grammar().map(ast.parse))
14 -        def test_does_not_crash_on_any_valid_code(self, syntax_tree):
15 -            # Given any syntatically-valid source code, flake8-bugbear should
16 -            # not crash.  This tests doesn't check that we do the *right* thing,
17 -            # just that we don't crash on valid-if-poorly-styled code!
18 -            BugBearVisitor(filename="<string>", lines=[]).visit(syntax_tree)
19  
20 +    @unittest.skip('No hypothesmith packaged yet')
21      def test_does_not_crash_on_site_code(self):
22          # Because the generator isn't perfect, we'll also test on all the code
23          # we can easily find in our current Python environment - this includes
c9b171 24 @@ -893,6 +882,7 @@
444a05 25                      if f.endswith(".py"):
MT 26                          BugBearChecker(filename=str(Path(dirname) / f))
27  
28 +    @unittest.skip('No hypothesmith packaged yet')
29      def test_does_not_crash_on_tuple_expansion_in_except_statement(self):
30          # akin to test_does_not_crash_on_any_valid_code
31          # but targets a rare case that's not covered by hypothesmith.from_grammar
c9b171 32 @@ -907,6 +897,7 @@
444a05 33          )
MT 34          BugBearVisitor(filename="<string>", lines=[]).visit(syntax_tree)
35  
36 +    @unittest.skip('No hypothesmith packaged yet')
37      def test_does_not_crash_on_call_in_except_statement(self):
38          # akin to test_does_not_crash_on_tuple_expansion_in_except_statement
39          # see https://github.com/PyCQA/flake8-bugbear/issues/171
c9b171 40 --- flake8-bugbear-23.11.26/tox.ini.orig
MT 41 +++ flake8-bugbear-23.11.26/tox.ini
444a05 42 @@ -16,7 +16,6 @@
MT 43  deps =
44      coverage
45      hypothesis
46 -    hypothesmith
47  commands =
48      coverage run tests/test_bugbear.py {posargs}
49      coverage report -m