summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/GoogleTest/test_list_test.cpp
blob: c9f9512895b1ef8e3cd6fa3dcb3429c1ee30df78 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include <iostream>
#include <string>

int main(int argc, char** argv)
{
  // Note: GoogleTest.cmake doesn't actually depend on Google Test as such;
  // it only requires that we produces output in the expected format when
  // invoked with --gtest_list_tests. Thus, we fake that here. This allows us
  // to test the module without actually needing Google Test.
  if (argc > 1 && std::string(argv[1]) == "--gtest_list_tests") {
    std::cout << "test_list_test/test.\n";
    std::cout << "  case/0  # GetParam() = \"semicolon;\"\n";
    std::cout << "  case/1  # GetParam() = 'osb['\n";
    std::cout << "  case/2  # GetParam() = 'csb]'\n";
    std::cout << "  case/3  # GetParam() = 'S p a c e s'\n";
  }
  return 0;
}
class='column1'>| unittest.TestCase.debug() raises now a SkipTest if the class or the test method are decorated with the skipping decorator. Previously it only raised a SkipTest if the test method was decorated with other decorator in addition to the skipping decorator, or if SkipTest was explicitly raised in the test or setup methods. * bpo-45198: __set_name__ documentation not clear about its usage with ↵Raymond Hettinger2021-09-182-30/+36 | | | | non-descriptor classes (GH-28439) * bpo-45235: Fix argparse overrides namespace with subparser defaults (GH-28420)Adam Schwalm2021-09-183-6/+15 | * Fix minor typo in Doc/c-api/type.rst (GH-28432)Konstantin Popov2021-09-181-1/+1 | | | retreived-> retrieved * bpo-45183: don't raise an exception when calling ↵Brett Cannon2021-09-173-2/+6 | | | | | zipimport.zipimporter.find_spec() when the zip file is missing and the internal cache has been reset (GH-28435) This can occur when the zip file gets deleted, you call zipimport.zipimporter.invalidate_cache(), and then try to use zipimport.zipimporter.find_spec() (i.e. you left the zip file path on sys.path). * bpo-44640: Improve punctuation consistency in isinstance/issubclass error ↵wyz23x22021-09-171-2/+2 | | | | | messages (GH-27144) Co-authored-by: Łukasz Langa <lukasz@langa.pl> * [doc] Clarify exception in `multiprocessing.cpu_count` (GH-23660)Emmanuel Arias2021-09-171-1/+2 | | | | | Previous wording didn't explain the slightly unintuitive behavior. Co-authored-by: kj <28750310+Fidget-Spinner@users.noreply.github.com> * bpo-45020: Freeze os, site, and codecs. (gh-28398)Eric Snow2021-09-179-31/+79 | | | https://bugs.python.org/issue45020 * Fix missing space with help for `-m compileall -o` (GH-27591)Daniel Hahler2021-09-171-3/+3 | * bpo-42038: fix description of returned list of lines (GH-27529)andrei kulakov2021-09-171-6/+6 | * [doc] Add a missing apostrophe in a code example in venv.rst (GH-28391)Arkaprabha Chakraborty2021-09-171-1/+1 | * bpo-45116: Py_DEBUG ignores Py_ALWAYS_INLINE (GH-28419)Victor Stinner2021-09-172-1/+13 | | | | If the Py_DEBUG macro is defined, the Py_ALWAYS_INLINE macro does nothing. * bpo-45187: Fix dangling threads in test_socket.CreateServerFunctionalTest ↵Serhiy Storchaka2021-09-171-9/+3 | | | | (GH-28422) * bpo-45020: Fix build out of source tree (GH-28410)Victor Stinner2021-09-172-17/+23 | | | | | | * Makefile.pre.in: Add $(srcdir) when needed, remove it when it was used by mistake. * freeze_modules.py tool uses ./Programs/_freeze_module if the executable doesn't exist in the source tree. * bpo-45231: update_file.py preserves end of line (GH-28411)Victor Stinner2021-09-171-1/+13 | | | | | | The update_file.py tool now preserves the end of line of the updated file. Fix the "make regen-frozen" command: it no longer changes the end of line of PCbuild/ files on Unix. Git changes the end of line depending on the platform. * Remove compatibility check for Python versions below 2.2. (GH-28314)Omer Katz2021-09-171-5/+4 | | | | | | `os.path.realpath()` already exists in all our supported Python versions. There's no longer a need to check if it exists or not. Co-authored-by: Łukasz Langa <lukasz@langa.pl> * bpo-45212: Add a comment for time.sleep() in tests (GH-28414)Serhiy Storchaka2021-09-171-0/+1 | | | | Co-authored-by: Victor Stinner <vstinner@python.org> * bpo-45116: Add the Py_ALWAYS_INLINE macro (GH-28390)Victor Stinner2021-09-173-0/+44 | | | | | Add the Py_ALWAYS_INLINE macro to ask the compiler to always inline a static inline function. The compiler can ignore it and decides to not inline the function. * bpo-45219: Factor dictkey indexing (GH-28389)Mark Shannon2021-09-173-63/+106 | * bpo-45217: adds note that `allow_no_value` in `configparser` is optional ↵Nikita Sobolev2021-09-171-1/+2 | | | | | (GH-28396) Co-authored-by: Łukasz Langa <lukasz@langa.pl> * bpo-45107: Make LOAD_METHOD_CLASS safer and faster, clean up comments (GH-28177)Ken Jin2021-09-172-15/+9 | | | | | * Improve comments * Check cls is a type, remove dict calculation * bpo-45162: Remove many old deprecated unittest features (GH-28268)Serhiy Storchaka2021-09-1714-373/+61 | | | | | | | * "fail*" and "assert*" aliases of TestCase methods. * Broken from start TestCase method assertDictContainsSubset(). * Ignored TestLoader.loadTestsFromModule() parameter use_load_tests. * Old alias _TextTestResult of TextTestResult. * bpo-45187: Collect test_socket tests using unittest (GH-28317)Serhiy Storchaka2021-09-171-79/+5 | | | | | Previously, test classes ISOTPTest, J1939Test, BasicUDPLITETest and UDPLITETimeoutTest were not included in the list of tests and were not run by regrtest. * bpo-45203: fix compiler warnings (GH-28357)Ken Jin2021-09-171-0/+1 | | | Co-authored-by: Mark Shannon <mark@hotpy.org> * bpo-5846: Fix deprecations for obsolete unittest functions and add tests. ↵Serhiy Storchaka2021-09-173-30/+69 | | | | (GH-28382) * bpo-45228: Fix stack buffer overflow in parsing J1939 address (GH-28404)Serhiy Storchaka2021-09-17