@@ -249,33 +249,6 @@ def test_algorithm_generation_factory(
249249 assert type (test_case_factory ) is fac_type
250250
251251
252- @mock .patch ("pynguin.analyses.seeding.ast.parse" )
253- def test_module_not_readable (parse_mock , constant_provider , seed_modules_path , dummy_test_cluster ):
254- test_factory = tf .TestFactory (dummy_test_cluster , constant_provider )
255- provider = seeding .InitialPopulationProvider (
256- dummy_test_cluster , test_factory , constant_provider
257- )
258-
259- # Raise only once for the code path under test, then delegate to the real parser so
260- # logging can still format exceptions without crashing.
261- import ast as _ast # noqa: PLC0415
262-
263- real_parse = _ast .parse
264-
265- call_state = {"called" : False }
266-
267- def _fake_parse (* args , ** kwargs ):
268- if not call_state ["called" ]:
269- call_state ["called" ] = True
270- raise BaseException
271- return real_parse (* args , ** kwargs )
272-
273- parse_mock .side_effect = _fake_parse
274- provider .collect_testcases (seed_modules_path )
275-
276- assert len (provider ) == 0
277-
278-
279252@mock .patch ("pynguin.ga.testcasechromosome.TestCaseChromosome.mutate" )
280253def test_initial_mutation (mutate_mock , constant_provider , seed_modules_path , dummy_test_cluster ):
281254 config .configuration .seeding .initial_population_mutations = 2
0 commit comments