Skip to content

Commit

Permalink
Silence warnings about my short-term fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
nwiltsie committed Jun 18, 2024
1 parent 82d604d commit 0d05f30
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/unit/test_NFTestEnv.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ def test_nftest_env_load(monkeypatch):
monkeypatch.setenv("NFT_LOG", test_log_file)

# Clear any existing singleton value
NFTestENV._instances.pop(NFTestENV, None)
NFTestENV._instances.pop(NFTestENV, None) # pylint: disable=protected-access
nftest_env = NFTestENV()

assert NFTestENV in NFTestENV._instances
assert NFTestENV in NFTestENV._instances # pylint: disable=protected-access

assert nftest_env.NFT_OUTPUT == test_out_directory
assert nftest_env.NFT_TEMP == test_temp_directory
Expand All @@ -37,7 +37,7 @@ def test_singleton():

assert id(nftest_env1) == id(nftest_env2)

NFTestENV._instances.pop(NFTestENV, None)
NFTestENV._instances.pop(NFTestENV, None) # pylint: disable=protected-access
nftest_env3 = NFTestENV()

assert id(nftest_env1) != id(nftest_env3)

0 comments on commit 0d05f30

Please sign in to comment.