diff --git a/setuptools/tests/test_build_ext.py b/setuptools/tests/test_build_ext.py
index <HASH>..<HASH> 100644
--- a/setuptools/tests/test_build_ext.py
+++ b/setuptools/tests/test_build_ext.py
@@ -35,7 +35,7 @@ class TestBuildExt:
         assert 'spam.eggs' in cmd.ext_map
         res = cmd.get_ext_filename('spam.eggs')
 
-        if sys.version_info[0] == 2:
+        if sys.version_info[0] == 2 or not get_abi3_suffix():
             assert res.endswith(get_config_var('SO'))
         elif sys.platform == 'win32':
             assert res.endswith('eggs.pyd')
gate test against get_abi3_suffix()