Skip to content

Commit

Permalink
fix windows selector
Browse files Browse the repository at this point in the history
  • Loading branch information
mzaatar committed Dec 30, 2022
1 parent 4500362 commit 0ee274b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions tests/bootstrap/test_bootstrap_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,17 @@

def make_output_scrubber(**extra_tokens: str) -> Scrubber:
default_tokens = {
"KqueueSelector": "Using selector: KqueueSelector",
"EpollSelector": "Using selector: EpollSelector",
# "KqueueSelector": "Using selector: KqueueSelector",
# "EpollSelector": "Using selector: EpollSelector",
# "IocpProactor": "Using proactor: IocpProactor",
}
tokens = default_tokens | extra_tokens
return combine_scrubbers(
click.unstyle,
TokenScrubber(tokens=tokens),
lambda t: t.replace("KqueueSelector", "replaced_selector").replace("EpollSelector", "replaced_selector"),
lambda t: t.replace("KqueueSelector", "{selector} ")
.replace("EpollSelector", "{selector} ")
.replace("IocpProactor", "{selector} "),
)


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Copying {current_working_directory}/.env.template to {current_working_directory}
# comment for token 2 - you should enter a valid value
# another comment

DEBUG: {replaced_selector}
DEBUG: Using selector: {selector}


# another comment
Expand Down

0 comments on commit 0ee274b

Please sign in to comment.