|
19 | 19 |
|
20 | 20 |
|
21 | 21 | def test_namespace_package_compat(tmp_path: pathlib.PosixPath) -> None: |
22 | | - # The ``google`` namespace package should not be masked |
23 | | - # by the presence of ``google-cloud-alloydb-connector``. |
| 22 | + # The ``google`` namespace package should not be masked by the presence of |
| 23 | + # `google-cloud-alloydb` and ``google-cloud-alloydb-connector``. |
24 | 24 | google = tmp_path / "google" |
25 | 25 | google.mkdir() |
26 | 26 | google.joinpath("othermod.py").write_text("") |
27 | 27 | env = dict(os.environ, PYTHONPATH=str(tmp_path)) |
28 | 28 | cmd = [sys.executable, "-m", "google.othermod"] |
29 | 29 | subprocess.check_call(cmd, env=env) |
30 | 30 |
|
31 | | - # The ``google.cloud`` namespace package should not be masked |
32 | | - # by the presence of ``google-cloud-alloydb-connector``. |
| 31 | + # The ``google.cloud`` namespace package should not be masked by the presence of |
| 32 | + # ``google-cloud-alloydb`` and ``google-cloud-alloydb-connector``. |
33 | 33 | google_cloud = tmp_path / "google" / "cloud" |
34 | 34 | google_cloud.mkdir() |
35 | 35 | google_cloud.joinpath("othermod.py").write_text("") |
36 | 36 | env = dict(os.environ, PYTHONPATH=str(tmp_path)) |
37 | 37 | cmd = [sys.executable, "-m", "google.cloud.othermod"] |
38 | 38 | subprocess.check_call(cmd, env=env) |
39 | | - |
40 | | - # The ``google.cloud.sql`` namespace package should not be masked |
41 | | - # by the presence of ``google-cloud-alloydb-connector``. |
42 | | - google_cloud_alloydb = tmp_path / "google" / "cloud" / "alloydb" |
43 | | - google_cloud_alloydb.mkdir() |
44 | | - google_cloud_alloydb.joinpath("othermod.py").write_text("") |
45 | | - env = dict(os.environ, PYTHONPATH=str(tmp_path)) |
46 | | - cmd = [sys.executable, "-m", "google.cloud.alloydb.othermod"] |
47 | | - subprocess.check_call(cmd, env=env) |
0 commit comments