mirror of
https://github.com/ankitects/anki.git
synced 2025-09-22 07:52:24 -04:00
remove unnecessary global from tests
This commit is contained in:
parent
387a5896a4
commit
1c9a3f086b
1 changed files with 0 additions and 4 deletions
|
@ -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 a new issue