remove unnecessary global from tests
This commit is contained in:
parent
387a5896a4
commit
1c9a3f086b
@ -8,11 +8,7 @@ from anki.stdmodels import addBasicModel, models
|
|||||||
|
|
||||||
from anki import Collection as aopen
|
from anki import Collection as aopen
|
||||||
|
|
||||||
newPath = None
|
|
||||||
newMod = None
|
|
||||||
|
|
||||||
def test_create_open():
|
def test_create_open():
|
||||||
global newPath, newMod
|
|
||||||
(fd, path) = tempfile.mkstemp(suffix=".anki2", prefix="test_attachNew")
|
(fd, path) = tempfile.mkstemp(suffix=".anki2", prefix="test_attachNew")
|
||||||
try:
|
try:
|
||||||
os.close(fd)
|
os.close(fd)
|
||||||
|
Loading…
Reference in New Issue
Block a user