Skip to content

Commit

Permalink
CART-831 tests: Fix python indentation for pylint
Browse files Browse the repository at this point in the history
Need 4 spaces, not just 2 space for indentation.

Skip-build-leap15-rpm: true
Skip-func-test-leap15: true
Skip-build-ubuntu-clang: true
Skip-build-leap15-icc: true
Skip-coverity-test: true
Quick-build: true
Test-tag: cart
Skip-unit-tests: true
Skip-nlt: true
Skip-unit-test: true
Skip-unit-test-memcheck: true
Skip-coverity-test: true
Skip-func-hw-test-small: true
Skip-func-hw-test-medium: true
Skip-func-hw-test-large: true

Signed-off-by: Ethan Mallove <[email protected]>
  • Loading branch information
mallove79 committed Mar 5, 2021
1 parent 28b66cd commit 28f106d
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/tests/ftest/util/apricot/apricot/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,9 +359,9 @@ def setUp(self):

for kv_pair in default_env:
if 0 in kv_pair:
key, value = kv_pair[0]
print("Adding {}={} to environment.\n".format(key, value))
os.environ[key] = value
key, value = kv_pair[0]
print("Adding {}={} to environment.\n".format(key, value))
os.environ[key] = value

# For compatibility with cart tests, which set env vars in oretrun
# command via -x options
Expand Down Expand Up @@ -402,11 +402,11 @@ def unset_other_env_vars(self):

for kv_pair in default_env:
try:
key = kv_pair[0][0]
print("Removing key {} from environment.\n".format(key))
del os.environ[key]
key = kv_pair[0][0]
print("Removing key {} from environment.\n".format(key))
del os.environ[key]
except IndexError:
pass
pass

class TestWithServers(TestWithoutServers):
# pylint: disable=too-many-public-methods,too-many-instance-attributes
Expand Down

0 comments on commit 28f106d

Please sign in to comment.