Skip to content

Commit 774dd98

Browse files
authored
Discard changes to Lib/test/test_zipfile/test_core.py
1 parent 9b438a5 commit 774dd98

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Lib/test/test_zipfile/test_core.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1424,10 +1424,8 @@ def test_write_filtered_python_package(self):
14241424

14251425
# then check that the filter works on individual files
14261426
def filter(path):
1427-
basename = os.path.basename(path)
1428-
return not (basename.startswith("bad") or basename != "test_grammar.py")
1429-
1430-
with captured_stdout() as reportSIO:
1427+
return not os.path.basename(path).startswith("bad")
1428+
with captured_stdout() as reportSIO, self.assertWarns(UserWarning):
14311429
zipfp.writepy(packagedir, filterfunc=filter)
14321430
reportStr = reportSIO.getvalue()
14331431
if reportStr:

0 commit comments

Comments
 (0)