Skip to content
This repository was archived by the owner on Sep 13, 2022. It is now read-only.

Commit 718d72a

Browse files
committed
Remove unnecessary imports from test files.
1 parent 4bbe549 commit 718d72a

File tree

4 files changed

+10
-27
lines changed

4 files changed

+10
-27
lines changed

tests/__init__.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,9 @@
99
unicode_literals)
1010

1111
import glob
12-
import itertools
1312
import os
1413

15-
from io import open
16-
from os.path import abspath, dirname, exists, join
14+
from os.path import abspath, dirname, join
1715

1816
from zpar import ZPar
1917

tests/test_depparser.py

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,16 @@
11
"""
2-
Module for running a bunch of simple unit tests. Should be expanded more in
3-
the future.
2+
Run unit tests for the ZPar dependency parser.
43
54
:author: Nitin Madnani ([email protected])
65
"""
76

87
from __future__ import (absolute_import, division, print_function,
98
unicode_literals)
109

11-
import itertools
12-
import os
13-
1410
from io import open
15-
from os.path import abspath, dirname, exists, join
11+
from os.path import abspath, dirname, join
1612

17-
import numpy as np
18-
from nose.tools import eq_, raises, assert_equal, assert_not_equal
13+
from nose.tools import assert_equal
1914

2015
_my_dir = abspath(dirname(__file__))
2116

tests/test_parser.py

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,16 @@
11
"""
2-
Module for running a bunch of simple unit tests. Should be expanded more in
3-
the future.
2+
Run unit tests for the ZPar constituency parser.
43
54
:author: Nitin Madnani ([email protected])
65
"""
76

87
from __future__ import (absolute_import, division, print_function,
98
unicode_literals)
109

11-
import itertools
12-
import os
13-
1410
from io import open
15-
from os.path import abspath, dirname, exists, join
11+
from os.path import abspath, dirname, join
1612

17-
import numpy as np
18-
from nose.tools import eq_, raises, assert_equal, assert_not_equal
13+
from nose.tools import assert_equal
1914

2015
_my_dir = abspath(dirname(__file__))
2116

tests/test_tagger.py

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,16 @@
11
"""
2-
Module for running a bunch of simple unit tests. Should be expanded more in
3-
the future.
2+
Run unit tests for the ZPar tagger.
43
54
:author: Nitin Madnani ([email protected])
65
"""
76

87
from __future__ import (absolute_import, division, print_function,
98
unicode_literals)
109

11-
import itertools
12-
import os
13-
1410
from io import open
15-
from os.path import abspath, dirname, exists, join
11+
from os.path import abspath, dirname, join
1612

17-
import numpy as np
18-
from nose.tools import eq_, raises, assert_equal, assert_not_equal
13+
from nose.tools import assert_equal
1914

2015
_my_dir = abspath(dirname(__file__))
2116

0 commit comments

Comments
 (0)