@@ -503,7 +503,6 @@ async def test_should_round_trip_har_zip(
503503 await expect (page_2 .locator ("body" )).to_have_css (
504504 "background-color" , "rgb(255, 192, 203)"
505505 )
506- await context_2 .close ()
507506
508507
509508async def test_should_round_trip_har_with_post_data (
@@ -537,7 +536,6 @@ async def test_should_round_trip_har_with_post_data(
537536 assert await page_2 .evaluate (fetch_function , "3" ) == "3"
538537 with pytest .raises (Exception ):
539538 await page_2 .evaluate (fetch_function , "4" )
540- await context_2 .close ()
541539
542540
543541async def test_should_disambiguate_by_header (
@@ -580,7 +578,6 @@ async def test_should_disambiguate_by_header(
580578 assert await page_2 .evaluate (fetch_function , "baz2" ) == "baz2"
581579 assert await page_2 .evaluate (fetch_function , "baz3" ) == "baz3"
582580 assert await page_2 .evaluate (fetch_function , "baz4" ) == "baz1"
583- await context_2 .close ()
584581
585582
586583async def test_should_produce_extracted_zip (
@@ -608,7 +605,6 @@ async def test_should_produce_extracted_zip(
608605 await expect (page_2 .locator ("body" )).to_have_css (
609606 "background-color" , "rgb(255, 192, 203)"
610607 )
611- await context_2 .close ()
612608
613609
614610async def test_should_update_har_zip_for_context (
@@ -631,7 +627,6 @@ async def test_should_update_har_zip_for_context(
631627 await expect (page_2 .locator ("body" )).to_have_css (
632628 "background-color" , "rgb(255, 192, 203)"
633629 )
634- await context_2 .close ()
635630
636631
637632async def test_should_update_har_zip_for_page (
@@ -654,7 +649,6 @@ async def test_should_update_har_zip_for_page(
654649 await expect (page_2 .locator ("body" )).to_have_css (
655650 "background-color" , "rgb(255, 192, 203)"
656651 )
657- await context_2 .close ()
658652
659653
660654async def test_should_update_extracted_har_zip_for_page (
@@ -681,4 +675,3 @@ async def test_should_update_extracted_har_zip_for_page(
681675 await expect (page_2 .locator ("body" )).to_have_css (
682676 "background-color" , "rgb(255, 192, 203)"
683677 )
684- await context_2 .close ()
0 commit comments