From dc6b89c793a1d0ce12f8a24c9a94426cfde89c08 Mon Sep 17 00:00:00 2001 From: Stephen Morton Date: Sat, 7 Dec 2024 19:54:26 -0800 Subject: [PATCH] adjust allowlist for `urllib.response.addbase` (#13219) I don't think we need a regex for just two items --- stdlib/@tests/stubtest_allowlists/common.txt | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/stdlib/@tests/stubtest_allowlists/common.txt b/stdlib/@tests/stubtest_allowlists/common.txt index 050c6a44a..8a9840229 100644 --- a/stdlib/@tests/stubtest_allowlists/common.txt +++ b/stdlib/@tests/stubtest_allowlists/common.txt @@ -548,11 +548,8 @@ types.ModuleType.__dict__ # read-only but not actually a property; stubtest thi types.ModuleType.__getattr__ # this doesn't exist at runtime unittest.runner._WritelnDecorator.flush # Methods that come from __getattr__() at runtime unittest.runner._WritelnDecorator.write # Methods that come from __getattr__() at runtime - -# See comments in file. List out methods that are delegated by __getattr__ at runtime. -# Used to make the relevant class satisfy BinaryIO interface. -urllib.response.addbase.\w+ - +urllib.response.addbase.write # Methods that come from __getattr__() at runtime +urllib.response.addbase.writelines # Methods that come from __getattr__() at runtime urllib.request.HTTPPasswordMgrWithPriorAuth.__init__ # Args are passed as is to super, so super args are specified uuid.bytes_ # Attributes that are intended to be private uuid.int_ # Attributes that are intended to be private