Remove compability code for Python 2 subprocess module

This commit is contained in:
2020-02-16 14:28:57 +02:00
parent 599413c42f
commit b2fb092ea3
2 changed files with 32 additions and 37 deletions

View File

@@ -9,8 +9,8 @@ import pytest
from galvani import res2sqlite
# TODO - change to subprocess.DEVNULL when python 2 support is removed
have_mdbtools = (subprocess.call(['which', 'mdb-export'], stdout=None) == 0)
have_mdbtools = (subprocess.call(['which', 'mdb-export'],
stdout=subprocess.DEVNULL) == 0)
def test_res2sqlite_help():