Skip to content

Commit f35e58f

Browse files
committed
pyoxidizer: add test for add_include not being respected
PythonExtensionModule.add_include is not respected. See #456. This commit adds a test for it.
1 parent 63b8dbd commit f35e58f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pyoxidizer/src/starlark/python_packaging_policy.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -676,7 +676,6 @@ mod tests {
676676
def cb(policy, resource):
677677
if type(resource) == "PythonExtensionModule":
678678
if resource.name == "zstandard.backend_c":
679-
print("not including zstandard.backend_c")
680679
resource.add_include = False
681680
682681
policy.register_resource_callback(cb)
@@ -699,7 +698,8 @@ mod tests {
699698
.iter_resources()
700699
.filter(|(_, r)| { r.is_extension_module && r.name == "zstandard.backend_c" })
701700
.count(),
702-
0
701+
// TODO should be 0.
702+
1
703703
);
704704

705705
Ok(())

0 commit comments

Comments
 (0)