summaryrefslogtreecommitdiff
path: root/tests/test_using.py
diff options
context:
space:
mode:
authorRaphaël Barrois <raphael.barrois@polytechnique.org>2012-08-17 17:11:17 +0200
committerRaphaël Barrois <raphael.barrois@polytechnique.org>2012-11-15 00:01:25 +0100
commitac90ac4b3425cc79c164b3dc0bd13901bf814ff7 (patch)
tree6cd182c79997b8f979dff964617d4c54c680521e /tests/test_using.py
parentb152ba79ab355c231b6e5fd852bad546e06208d9 (diff)
downloadfactory-boy-ac90ac4b3425cc79c164b3dc0bd13901bf814ff7.tar
factory-boy-ac90ac4b3425cc79c164b3dc0bd13901bf814ff7.tar.gz
[py3] Various python3-compatibility fixes.
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
Diffstat (limited to 'tests/test_using.py')
-rw-r--r--tests/test_using.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_using.py b/tests/test_using.py
index 112604d..ad62113 100644
--- a/tests/test_using.py
+++ b/tests/test_using.py
@@ -1220,13 +1220,13 @@ class CircularTestCase(unittest.TestCase):
def test_example(self):
sys.path.insert(0, os.path.abspath(os.path.dirname(__file__)))
- from cyclic import foo
+ from .cyclic import foo
f = foo.FooFactory.build(bar__foo=None)
self.assertEqual(42, f.x)
self.assertEqual(13, f.bar.y)
self.assertIsNone(f.bar.foo)
- from cyclic import bar
+ from .cyclic import bar
b = bar.BarFactory.build(foo__bar__foo__bar=None)
self.assertEqual(13, b.y)
self.assertEqual(42, b.foo.x)