mirror of
https://github.com/Tencent/ncnn.git
synced 2026-10-17 04:41:47 +08:00
Fixing TypeError assertions in test_extractor.py (#2968)
* Fixing TypeError assertions in pytest * Add Compiled Python files to gitignore
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user