Skip to content

Commit

Permalink
Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ThanatosGit committed Dec 31, 2023
1 parent 40ce195 commit cefe10f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions randovania_lupa/tests/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -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()

0 comments on commit cefe10f

Please sign in to comment.