aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugeniy E. Mikhailov <evgmik@gmail.com>2024-07-13 19:32:41 -0400
committerEugeniy E. Mikhailov <evgmik@gmail.com>2024-07-13 19:32:41 -0400
commit4da288f9438b75e55bafee892796bc83292c5062 (patch)
tree32b13dfa238c132669fc021bf8749d40874462b2
parentc8a85d0e9f27c68239fc8459ebae67565e0cb5e0 (diff)
downloadqolab-4da288f9438b75e55bafee892796bc83292c5062.tar.gz
qolab-4da288f9438b75e55bafee892796bc83292c5062.zip
flake9 linter satisfaction
-rw-r--r--tests/test_trace.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/tests/test_trace.py b/tests/test_trace.py
index e7d2cf1..913e910 100644
--- a/tests/test_trace.py
+++ b/tests/test_trace.py
@@ -15,44 +15,44 @@ def isItExpectedTrace(tr):
def test_load_uncompressed_v0dot1_trace():
tr = loadTrace("tests/trace_test_data/xtrace1.dat")
- assert isItExpectedTrace(tr) == True
+ assert isItExpectedTrace(tr) is True
def test_load_gzip_compressed_v0dot1_trace():
tr = loadTrace("tests/trace_test_data/xtrace1.dat.gz")
- assert isItExpectedTrace(tr) == True
+ assert isItExpectedTrace(tr) is True
def test_load_bzip_compressed_v0dot1_trace():
tr = loadTrace("tests/trace_test_data/xtrace1.dat.bz")
- assert isItExpectedTrace(tr) == True
+ assert isItExpectedTrace(tr) is True
tr = loadTrace("tests/trace_test_data/xtrace1.dat.bz2")
- assert isItExpectedTrace(tr) == True
+ assert isItExpectedTrace(tr) is True
def test_tryCompressedIfMissing():
fname = "tests/trace_test_data/only_compressed_file1.dat"
# we check that the guess is working for gzip compressed file (.gz)
tr = loadTrace(fname, tryCompressedIfMissing=True)
- assert isItExpectedTrace(tr) == True
+ assert isItExpectedTrace(tr) is True
fname = "tests/trace_test_data/only_compressed_file2.dat"
# we check that the guess is working for bzip compressed file (.bz)
tr = loadTrace(fname, tryCompressedIfMissing=True)
- assert isItExpectedTrace(tr) == True
+ assert isItExpectedTrace(tr) is True
fname = "tests/trace_test_data/only_compressed_file3.dat"
# we check that the guess is working for bzip compressed file (.bz2)
tr = loadTrace(fname, tryCompressedIfMissing=True)
- assert isItExpectedTrace(tr) == True
+ assert isItExpectedTrace(tr) is True
# now we disable search for compressed version
- with pytest.raises(FileNotFoundError) as exc_info:
+ with pytest.raises(FileNotFoundError):
tr = loadTrace(fname, tryCompressedIfMissing=False)
tr = loadTrace("tests/trace_test_data/xtrace1.dat")
- assert isItExpectedTrace(tr) == True
+ assert isItExpectedTrace(tr) is True
def test_saving_raw():