From d4b6f06b3ea1015c12672b723d7d0751b8cfaea3 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Tue, 2 Jul 2024 11:44:07 +0200 Subject: [PATCH 1/3] DRAFT: pytest discovery --- pylib/gyp/generator/{msvs_test.py => test_msvs.py} | 0 pylib/gyp/generator/{ninja_test.py => test_ninja.py} | 0 pylib/gyp/generator/{xcode_test.py => test_xcode.py} | 0 pylib/gyp/{MSVSSettings_test.py => test_MSVSSettings.py} | 0 pylib/gyp/{common_test.py => test_common.py} | 0 pylib/gyp/{easy_xml_test.py => test_easy_xml.py} | 0 pylib/gyp/{input_test.py => test_input.py} | 0 pylib/gyp/{xcode_emulation_test.py => test_xcode_emulation.py} | 0 8 files changed, 0 insertions(+), 0 deletions(-) rename pylib/gyp/generator/{msvs_test.py => test_msvs.py} (100%) rename pylib/gyp/generator/{ninja_test.py => test_ninja.py} (100%) rename pylib/gyp/generator/{xcode_test.py => test_xcode.py} (100%) rename pylib/gyp/{MSVSSettings_test.py => test_MSVSSettings.py} (100%) rename pylib/gyp/{common_test.py => test_common.py} (100%) rename pylib/gyp/{easy_xml_test.py => test_easy_xml.py} (100%) rename pylib/gyp/{input_test.py => test_input.py} (100%) rename pylib/gyp/{xcode_emulation_test.py => test_xcode_emulation.py} (100%) diff --git a/pylib/gyp/generator/msvs_test.py b/pylib/gyp/generator/test_msvs.py similarity index 100% rename from pylib/gyp/generator/msvs_test.py rename to pylib/gyp/generator/test_msvs.py diff --git a/pylib/gyp/generator/ninja_test.py b/pylib/gyp/generator/test_ninja.py similarity index 100% rename from pylib/gyp/generator/ninja_test.py rename to pylib/gyp/generator/test_ninja.py diff --git a/pylib/gyp/generator/xcode_test.py b/pylib/gyp/generator/test_xcode.py similarity index 100% rename from pylib/gyp/generator/xcode_test.py rename to pylib/gyp/generator/test_xcode.py diff --git a/pylib/gyp/MSVSSettings_test.py b/pylib/gyp/test_MSVSSettings.py similarity index 100% rename from pylib/gyp/MSVSSettings_test.py rename to pylib/gyp/test_MSVSSettings.py diff --git a/pylib/gyp/common_test.py b/pylib/gyp/test_common.py similarity index 100% rename from pylib/gyp/common_test.py rename to pylib/gyp/test_common.py diff --git a/pylib/gyp/easy_xml_test.py b/pylib/gyp/test_easy_xml.py similarity index 100% rename from pylib/gyp/easy_xml_test.py rename to pylib/gyp/test_easy_xml.py diff --git a/pylib/gyp/input_test.py b/pylib/gyp/test_input.py similarity index 100% rename from pylib/gyp/input_test.py rename to pylib/gyp/test_input.py diff --git a/pylib/gyp/xcode_emulation_test.py b/pylib/gyp/test_xcode_emulation.py similarity index 100% rename from pylib/gyp/xcode_emulation_test.py rename to pylib/gyp/test_xcode_emulation.py From 53f2d7dd9ef083d547c01da844890b0229ca1126 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Tue, 2 Jul 2024 11:52:25 +0200 Subject: [PATCH 2/3] DRAFT: pytest discovery --- pylib/gyp/generator/{test_xcode.py => ztest_xcode.py} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename pylib/gyp/generator/{test_xcode.py => ztest_xcode.py} (100%) diff --git a/pylib/gyp/generator/test_xcode.py b/pylib/gyp/generator/ztest_xcode.py similarity index 100% rename from pylib/gyp/generator/test_xcode.py rename to pylib/gyp/generator/ztest_xcode.py From 07f3d8c89ffcce4b6ef7fc85d72b93d4185fce40 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Tue, 2 Jul 2024 11:58:58 +0200 Subject: [PATCH 3/3] DRAFT: pytest discovery --- pylib/gyp/generator/{ztest_xcode.py => test_xcode.py} | 0 pylib/gyp/xcodeproj_file.py | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) rename pylib/gyp/generator/{ztest_xcode.py => test_xcode.py} (100%) diff --git a/pylib/gyp/generator/ztest_xcode.py b/pylib/gyp/generator/test_xcode.py similarity index 100% rename from pylib/gyp/generator/ztest_xcode.py rename to pylib/gyp/generator/test_xcode.py diff --git a/pylib/gyp/xcodeproj_file.py b/pylib/gyp/xcodeproj_file.py index 4f92cd09..cb4d0d2d 100644 --- a/pylib/gyp/xcodeproj_file.py +++ b/pylib/gyp/xcodeproj_file.py @@ -781,7 +781,7 @@ def UpdateProperties(self, properties, do_copy=False): # Make sure the property conforms to the schema. (is_list, property_type, is_strong) = self._schema[property][0:3] if is_list: - if not isinstance(value.__class__, list): + if not isinstance(value, list): raise TypeError( property + " of "