* pygnulib/GLModuleSystem.py (GLModule.getTestsName): Return the module
name with '-tests' appended to it unconditionally.
+2024-04-01 Collin Funk <collin.funk1@gmail.com>
+
+ gnulib-tool.py: Fix --extract-tests-module with a test module.
+ * pygnulib/GLModuleSystem.py (GLModule.getTestsName): Return the module
+ name with '-tests' appended to it unconditionally.
+
2024-04-01 Collin Funk <collin.funk1@gmail.com>
gnulib-tool.py: Use case-sensitive sorting for file names.
def getTestsName(self) -> str:
'''Return -tests version of the module name.'''
- result = self.getName()
- if not result.endswith('-tests'):
- result += '-tests'
- return result
+ return f'{self.name}-tests'
def getTestsModule(self) -> GLModule | None:
'''Return -tests version of the module as GLModule.'''