cpython/Lib/test/test_cext/extension.cpp
Victor Stinner 364db5df08
[3.15] gh-157649: Merge test_cppext into test_cext (#158176) (#159264)
* test_cext now uses a single virtual environment for all tests.
  It makes the test way faster since creating a virtual environment
  is quite slow.
* Add Py_TARGET_ABI3T test on C++.
* Move macro tests from module exec function to test_macros().
* Call Py_BEGIN_CRITICAL_SECTION() on a fresh dictionary object,
  rather than on the module.
* Rename some environment variables to always use "CPYTHON_TEST_"
  prefix.
* Replace support.MS_WINDOWS with MSVC to be more explicit.
* Move macro tests to test_macros().
* On macOS, use C++11 by default.

(cherry picked from commit b71989d657)
2026-10-13 00:21:22 +02:00

3 lines
157 B
C++

// extension.cpp just copy/paste extension.c. This file is used to pass
// a filename with ".cpp" extension to select a C++ compiler.
#include "extension.c"