)]}'
{
  "commit": "71171f7ea61b3ebfef6217f807a35db88fef905d",
  "tree": "945d93ab0abcb50146104ef15b6cf306f2847cc9",
  "parents": [
    "86bea7c3a9a97cbf71ed7bf5a39a8d53a3015bfb"
  ],
  "author": {
    "name": "Jiri Daněk",
    "email": "jdanek@redhat.com",
    "time": "Wed Apr 12 21:49:09 2023 +0200"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Wed Apr 12 21:49:09 2023 +0200"
  },
  "message": "QPID-8170: fix qpid-python-test discovery broken by commit 85348b01 (#18)\n\nThe problem stems from the way the testcode imports the production code, so that when both have a module of the same name, the test runner descends into the production code when discovering tests, instead of into the test code.\r\n\r\n```\r\n{code:title\u003dqpid/tests/messaging/__init__.py}\r\nfrom qpid.tests.messaging.implementation import *\r\n\r\n[...]\r\n\r\nfrom . import address, endpoints, message, selector\r\n{code}\r\n\r\nThe file imported on the first line contains\r\n\r\n{code:title\u003dqpid/tests/messaging/implementation.py}\r\nfrom qpid.messaging import *\r\n{code}\r\n```\r\n\r\nand {{qpid.messaging}} contains its own {{address.py}} submodule.\r\n\r\nTherefore, when {{qpid-test-runner}} tries to access {{qpid.tests.messaging.mesage}}, it actually gets {{qpid.messaging.message}}, which was imported first. But that does not contain any tests, and the message tests are missed and never executed.\r\n\r\nThis only started happening after my relative imports modernizing commit https://github.com/apache/qpid-python/commit/9651001c6fe0b65e538a96e27df36582b7ccb004.\r\n\r\nBefore, Totals: 349 tests, 349 passed, 0 skipped, 0 ignored, 0 failed and Totals: 678 tests, 585 passed, 93 skipped, 0 ignored, 0 failed (https://github.com/apache/qpid-python/actions/runs/4661323947/jobs/8250463871)\r\n\r\nAfter, Totals: 218 tests, 218 passed, 0 skipped, 0 ignored, 0 failed and Totals: 547 tests, 454 passed, 93 skipped, 0 ignored, 0 failed (https://github.com/apache/qpid-python/actions/runs/4661535006/jobs/8250915935)",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "ac7d70b4c4ccf70f62425e18c54e0a9312cd8ad2",
      "old_mode": 33261,
      "old_path": "qpid-python-test",
      "new_id": "ea575ae3f29b423e0416336f84aab30db026f283",
      "new_mode": 33261,
      "new_path": "qpid-python-test"
    }
  ]
}
