Fixing TypeError assertions in test_extractor.py (#2968)

* Fixing TypeError assertions in pytest

* Add Compiled Python files to gitignore
This commit is contained in:
Zhiqiang Wang
2021-06-03 14:28:18 +08:00
committed by GitHub
parent 1cb3eecd70
commit ccc597740f
2 changed files with 7 additions and 4 deletions
+2 -4
View File
@@ -20,9 +20,8 @@ alloctor = ncnn.PoolAllocator()
def test_extractor():
with pytest.raises(TypeError) as execinfo:
with pytest.raises(TypeError, match="No constructor"):
ex = ncnn.Extractor()
assert "No constructor" in str(execinfo.value)
dr = ncnn.DataReaderFromEmpty()
@@ -53,9 +52,8 @@ def test_extractor():
def test_extractor_index():
with pytest.raises(TypeError) as execinfo:
with pytest.raises(TypeError, match="No constructor"):
ex = ncnn.Extractor()
assert "No constructor" in str(execinfo.value)
dr = ncnn.DataReaderFromEmpty()