diff --git a/randovania_lupa/tests/test.py b/randovania_lupa/tests/test.py index 3f5923cc..83f811bc 100644 --- a/randovania_lupa/tests/test.py +++ b/randovania_lupa/tests/test.py @@ -59,10 +59,10 @@ def _run_gc_test(self, run_test, off_by_one=False): if off_by_one and old_count == new_count + 1: # FIXME: This happens in test_attrgetter_refcycle - need to investigate why! self.assertEqual(old_count, new_count + 1) - elif off_by_one and old_count == new_count + 2 and ( + elif off_by_one and old_count == new_count + 3 and ( sys.version_info[:2] == (3,7) or sys.version_info >= (3,11)): # FIXME: This happens in test_attrgetter_refcycle - need to investigate why! - self.assertEqual(old_count, new_count + 2) + self.assertEqual(old_count, new_count + 3) else: self.assertEqual(old_count, new_count) @@ -3096,14 +3096,14 @@ def test_set_max(self): # Load tests for different Lua version modules def load_tests(loader, standard_tests, pattern): - return lupa.tests.build_suite_for_modules(loader, globals()) + return randovania_lupa.tests.build_suite_for_modules(loader, globals()) if __name__ == '__main__': def print_version(): - version = lupa.LuaRuntime().lua_implementation - print('Running Lupa %s tests against %s.' % (lupa.__version__, version)) + version = randovania_lupa.LuaRuntime().lua_implementation + print('Running Lupa %s tests against %s.' % (randovania_lupa.__version__, version)) print_version() unittest.main()