Skip to content

Commit 0ceb25c

Browse files
committed
Fix relative import beyond toplevel package in tests
1 parent 61ec45d commit 0ceb25c

File tree

11 files changed

+11
-11
lines changed

11 files changed

+11
-11
lines changed

tests/test_abstract_factory.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env python
22
# -*- coding: utf-8 -*-
33

4-
from ..creational.abstract_factory import PetShop, Dog, Cat, DogFactory, CatFactory
4+
from creational.abstract_factory import PetShop, Dog, Cat, DogFactory, CatFactory
55
import sys
66

77
if sys.version_info < (2, 7):

tests/test_adapter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env python
2-
from ..structural.adapter import Dog, Cat, Human, Car, Adapter
2+
from structural.adapter import Dog, Cat, Human, Car, Adapter
33
import sys
44

55
if sys.version_info < (2, 7):

tests/test_borg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env python
2-
from ..creational.borg import Borg, YourBorg
2+
from creational.borg import Borg, YourBorg
33
import sys
44

55
if sys.version_info < (2, 7):

tests/test_bridge.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env python
22
# -*- coding: utf-8 -*-
33

4-
from ..structural.bridge import DrawingAPI1, DrawingAPI2, CircleShape
4+
from structural.bridge import DrawingAPI1, DrawingAPI2, CircleShape
55
from sys import version_info
66

77
if version_info < (2, 7): # pragma: no cover

tests/test_command.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env python
2-
from ..behavioral.command import MoveFileCommand
2+
from behavioral.command import MoveFileCommand
33
import os, shutil, subprocess, sys
44

55
if sys.version_info < (2, 7):

tests/test_flyweight.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env python
22
# -*- coding: utf-8 -*-
33

4-
from ..structural.flyweight import Card
4+
from structural.flyweight import Card
55
from sys import version_info
66

77
if version_info < (2, 7): # pragma: no cover

tests/test_hsm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env python
2-
from ..other.hsm.hsm import HierachicalStateMachine, UnsupportedMessageType,\
2+
from other.hsm.hsm import HierachicalStateMachine, UnsupportedMessageType,\
33
UnsupportedState, UnsupportedTransition, Active, Standby, Suspect, Failed
44
from sys import version_info
55

tests/test_observer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
import sys
55
from io import StringIO
6-
from ..behavioral.observer import Subject, Data, DecimalViewer, HexViewer
6+
from behavioral.observer import Subject, Data, DecimalViewer, HexViewer
77

88
if sys.version_info < (2, 7):
99
import unittest2 as unittest

tests/test_proxy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env python
22
# -*- coding: utf-8 -*-
33

4-
from ..structural.proxy import Proxy, NoTalkProxy
4+
from structural.proxy import Proxy, NoTalkProxy
55
import sys
66
from time import time
77

tests/test_publish_subscribe.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# -*- coding: utf-8 -*-
33

44
from sys import version_info
5-
from ..behavioral.publish_subscribe import Provider, Publisher, Subscriber
5+
from behavioral.publish_subscribe import Provider, Publisher, Subscriber
66

77
if version_info < (2, 7): # pragma: no cover
88
import unittest2 as unittest

0 commit comments

Comments
 (0)