Skip to content

Commit f06d6a5

Browse files
committed
update names
1 parent 8d442a3 commit f06d6a5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Lib/test/test_ctypes/test_dlerror.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ def setUpClass(cls):
133133
if not has_gcc():
134134
raise unittest.SkipTest("gcc is missing")
135135

136-
def make_libfoo(self, outdir, so_libname):
136+
def make_empty_lib(self, outdir, so_libname):
137137
srcname = os.path.join(outdir, 'empty.c')
138138
dstname = os.path.join(outdir, so_libname)
139139
create_empty_file(srcname)
@@ -145,7 +145,7 @@ def make_libfoo(self, outdir, so_libname):
145145
@configure_locales
146146
def test_localized_error_from_dll(self):
147147
with tempfile.TemporaryDirectory() as outdir:
148-
dstname = self.make_libfoo(outdir, 'test_from_dll.so')
148+
dstname = self.make_empty_lib(outdir, 'test_from_dll.so')
149149
dll = CDLL(dstname)
150150
# on macOS, the filename is not reported by dlerror()
151151
pat = '.+' if sys.platform == 'darwin' else r'test_from_dll\.so'
@@ -155,7 +155,7 @@ def test_localized_error_from_dll(self):
155155
@configure_locales
156156
def test_localized_error_in_dll(self):
157157
with tempfile.TemporaryDirectory() as outdir:
158-
dstname = self.make_libfoo(outdir, 'test_in_dll.so')
158+
dstname = self.make_empty_lib(outdir, 'test_in_dll.so')
159159
dll = CDLL(dstname)
160160
# on macOS, the filename is not reported by dlerror()
161161
pat = '.+' if sys.platform == 'darwin' else r'test_in_dll\.so'
@@ -182,7 +182,7 @@ def test_localized_error_dlopen(self):
182182
@configure_locales
183183
def test_localized_error_dlsym(self):
184184
with tempfile.TemporaryDirectory() as outdir:
185-
dstname = self.make_libfoo(outdir, 'test_dlsym.so')
185+
dstname = self.make_empty_lib(outdir, 'test_dlsym.so')
186186
dll = _ctypes.dlopen(dstname)
187187
# on macOS, the filename is not reported by dlerror()
188188
pat = '.+' if sys.platform == 'darwin' else r'test_dlsym\.so'

0 commit comments

Comments
 (0)