diff --git a/llvmlite/tests/test_ir.py b/llvmlite/tests/test_ir.py
index <HASH>..<HASH> 100644
--- a/llvmlite/tests/test_ir.py
+++ b/llvmlite/tests/test_ir.py
@@ -2066,7 +2066,7 @@ class TestConstant(TestBase):
 
     def test_non_nullable_int(self):
         constant = ir.Constant(ir.IntType(32), None).constant
-        assert constant == 0
+        self.assertEqual(constant, 0)
 
     def test_structs(self):
         st1 = ir.LiteralStructType((flt, int1))
Use unit-test assertions instead of built-in