Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Small fixes for modern flake8. #772

Merged
merged 1 commit into from
Mar 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions launch/test/launch/actions/test_push_and_pop_environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def test_push_and_pop_environment_constructors():
@sandbox_environment_variables
def test_push_and_pop_environment_execute():
"""Test the execute() of the PopEnvironment and PushEnvironment classes."""
assert type(os.environ) == os._Environ
assert isinstance(os.environ, os._Environ)

context = LaunchContext()

Expand Down Expand Up @@ -89,4 +89,4 @@ def test_push_and_pop_environment_execute():
assert context.environment['foo'] == 'FOO'

# Pushing and popping the environment should not change the type of os.environ
assert type(os.environ) == os._Environ
assert isinstance(os.environ, os._Environ)