We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f8e4f56 commit b9ecf97Copy full SHA for b9ecf97
Lib/test/test_zipfile/test_core.py
@@ -1424,8 +1424,10 @@ def test_write_filtered_python_package(self):
1424
1425
# then check that the filter works on individual files
1426
def filter(path):
1427
- return not os.path.basename(path).startswith("bad")
1428
- with captured_stdout() as reportSIO, self.assertWarns(UserWarning):
+ basename = os.path.basename(path)
+ return not (basename.startswith("bad") or basename != "test_grammar.py")
1429
+
1430
+ with captured_stdout() as reportSIO:
1431
zipfp.writepy(packagedir, filterfunc=filter)
1432
reportStr = reportSIO.getvalue()
1433
if reportStr:
0 commit comments