Skip to content

Commit

Permalink
this?
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexWaygood committed Jun 6, 2024
1 parent 1188bd8 commit 49d62cf
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions crates/red_knot/src/module.rs
Original file line number Diff line number Diff line change
Expand Up @@ -938,8 +938,10 @@ mod tests {
assert!(!TYPESHED_ZIP_BYTES.is_empty());
let mut typeshed_zip_archive = ZipArchive::new(Cursor::new(TYPESHED_ZIP_BYTES))?;

let path_to_functools = Path::new("stdlib/functools.pyi").to_str().unwrap();
let mut functools_module_stub = typeshed_zip_archive.by_name(path_to_functools).unwrap();
let path_to_functools = Path::new("stdlib").join("functools.pyi");
let mut functools_module_stub = typeshed_zip_archive
.by_name(path_to_functools.to_str().unwrap())
.unwrap();
assert!(functools_module_stub.is_file());

let mut functools_module_stub_source = String::new();
Expand Down

0 comments on commit 49d62cf

Please sign in to comment.