Skip to content

Commit ad7c53a

Browse files
committed
python: Don't import more than is used in the tests - should cause a failure due to gz.math not always being imported.
Signed-off-by: Will Stott <willstott101@gmail.com>
1 parent 1bf1aa4 commit ad7c53a

14 files changed

+8
-16
lines changed

python/test/pyAirPressure_TEST.py

-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
from gz.math import Vector3d
1615
from sdformat import AirPressure, Noise
1716
import sdformat as sdf
1817
import unittest

python/test/pyAltimeter_TEST.py

-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
from gz.math import Vector3d
1615
from sdformat import Altimeter, Noise
1716
import sdformat as sdf
1817
import unittest

python/test/pyAtmosphere_TEST.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
from gz.math import Pose3d, Temperature
15+
from gz.math import Temperature
1616
from sdformat import Atmosphere
1717
import sdformat as sdf
1818
import unittest

python/test/pyCapsule_TEST.py

-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414

1515
import copy
1616

17-
from gz.math import Vector3d, Capsuled
18-
1917
import math
2018

2119
from sdformat import Capsule

python/test/pyCylinder_TEST.py

-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414

1515
import copy
1616

17-
from gz.math import Vector3d
18-
1917
import math
2018

2119
from sdformat import Cylinder

python/test/pyEllipsoid_TEST.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# limitations under the License.
1414

1515
import copy
16-
from gz.math import Vector3d, Ellipsoidd
16+
from gz.math import Vector3d
1717
import math
1818
from sdformat import Ellipsoid
1919
import unittest

python/test/pyJointAxis_TEST.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# limitations under the License.
1414

1515
import copy
16-
from gz.math import Pose3d, Vector3d
16+
from gz.math import Vector3d
1717
from sdformat import JointAxis, Error, SDFErrorsException
1818
import math
1919
import unittest

python/test/pyLidar_TEST.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# limitations under the License.
1414

1515
import copy
16-
from gz.math import Angle, Pose3d, Vector3d, Helpers
16+
from gz.math import Angle, Helpers
1717
from sdformat import Lidar, Error, Noise
1818
import math
1919
import unittest

python/test/pyMagnetometer_TEST.py

-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
# limitations under the License.
1414

1515
import copy
16-
from gz.math import Pose3d
1716
from sdformat import Magnetometer, Noise
1817
import sdformat as sdf
1918
import unittest

python/test/pyModel_TEST.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# limitations under the License.
1414

1515
import copy
16-
from gz.math import Pose3d, Vector3d
16+
from gz.math import Pose3d
1717
from sdformat import (Plugin, Model, Joint, Link, Error, Frame, SemanticPose,
1818
SDFErrorsException)
1919
import sdformat as sdf

python/test/pyPlane_TEST.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
import copy
1616
from sdformat import Plane
17-
from gz.math import Vector3d, Vector2d, Planed
17+
from gz.math import Vector3d, Vector2d
1818
import unittest
1919

2020

python/test/pyRoot_TEST.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# limitations under the License.
1414

1515
import copy
16-
from gz.math import Vector3d, Pose3d
16+
from gz.math import Pose3d
1717
from sdformat import (Error, Model, Light, Root, SDF_VERSION,
1818
SDFErrorsException, SDF_PROTOCOL_VERSION, World)
1919
import sdformat as sdf

python/test/pySphere_TEST.py

-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
# limitations under the License.
1414

1515
import copy
16-
from gz.math import Sphered
1716
import math
1817
from sdformat import Sphere
1918
import unittest

python/test/pyWorld_TEST.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# limitations under the License.
1414

1515
import copy
16-
from gz.math import Color, Pose3d, Vector3d, SphericalCoordinates
16+
from gz.math import Color, Vector3d, SphericalCoordinates
1717
from sdformat import Atmosphere, Gui, Physics, Plugin, Error, Frame, Light, Model, Scene, World
1818
import sdformat as sdf
1919
import unittest

0 commit comments

Comments
 (0)