class LiveRCPageGeneratorTestCase(WikimediaDefaultSiteTestCase): test_length = 10
results in
File "./tests/pagegenerators_tests.py", line 487, in <module> class LiveRCPageGeneratorTestCase(WikimediaDefaultSiteTestCase): File "/home/valhallasw/src/pywikibot-core/tests/aspects.py", line 695, in __new__ if test_func.__code__.co_argcount == 0: AttributeError: 'int' object has no attribute '__code__'