perl/Module-Build-Tiny: update to 0.051 for Perl 5.36 and 5.38
[oi-userland.git] / components / python / editables / patches / 01-pkg.patch
blobcbb2255b953535058d16affcac10ec43348df2e6
1 This is to avoid clash with ips pkg module.
3 --- editables-0.5/tests/test_redirects.py.orig
4 +++ editables-0.5/tests/test_redirects.py
5 @@ -61,7 +61,7 @@
6 project = tmp_path / "project"
7 project_files = {
8 "mod.py": "val = 42",
9 - "pkg": {
10 + "pkg1": {
11 "__init__.py": "val = 42",
12 "sub.py": "val = 42",
14 @@ -71,17 +71,17 @@
15 with save_import_state():
16 F.install()
17 F.map_module("mod", project / "mod.py")
18 - F.map_module("pkg", project / "pkg/__init__.py")
19 + F.map_module("pkg1", project / "pkg1/__init__.py")
21 import mod
23 assert mod.val == 42
24 - import pkg
25 + import pkg1
27 - assert pkg.val == 42
28 - import pkg.sub
29 + assert pkg1.val == 42
30 + import pkg1.sub
32 - assert pkg.sub.val == 42
33 + assert pkg1.sub.val == 42
36 def test_cache_invalidation():