diff --git a/tests/complex/traci/pythonApi/bugs/testsuite.complex b/tests/complex/traci/pythonApi/bugs/testsuite.complex
index 21f382ec0f7..84eeb8ee7c9 100644
--- a/tests/complex/traci/pythonApi/bugs/testsuite.complex
+++ b/tests/complex/traci/pythonApi/bugs/testsuite.complex
@@ -65,3 +65,6 @@ ticket4642
# failure to add vehicle in long simulation
ticket4920
+
+# moveToXY and opposite direction driving
+ticket5029
diff --git a/tests/complex/traci/pythonApi/bugs/ticket5029/errors.complex b/tests/complex/traci/pythonApi/bugs/ticket5029/errors.complex
new file mode 100644
index 00000000000..e69de29bb2d
diff --git a/tests/complex/traci/pythonApi/bugs/ticket5029/input_net.net.xml b/tests/complex/traci/pythonApi/bugs/ticket5029/input_net.net.xml
new file mode 100644
index 00000000000..53f4c86ff1c
--- /dev/null
+++ b/tests/complex/traci/pythonApi/bugs/ticket5029/input_net.net.xml
@@ -0,0 +1,53 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/tests/complex/traci/pythonApi/bugs/ticket5029/input_routes.rou.xml b/tests/complex/traci/pythonApi/bugs/ticket5029/input_routes.rou.xml
new file mode 100644
index 00000000000..0645da2e0b8
--- /dev/null
+++ b/tests/complex/traci/pythonApi/bugs/ticket5029/input_routes.rou.xml
@@ -0,0 +1,3 @@
+
+
+
diff --git a/tests/complex/traci/pythonApi/bugs/ticket5029/options.complex b/tests/complex/traci/pythonApi/bugs/ticket5029/options.complex
new file mode 100644
index 00000000000..c3c514fcc4c
--- /dev/null
+++ b/tests/complex/traci/pythonApi/bugs/ticket5029/options.complex
@@ -0,0 +1 @@
+tests/complex/traci/pythonApi/bugs/ticket5029/runner.py
\ No newline at end of file
diff --git a/tests/complex/traci/pythonApi/bugs/ticket5029/output.complex b/tests/complex/traci/pythonApi/bugs/ticket5029/output.complex
new file mode 100644
index 00000000000..5d18fa49f33
--- /dev/null
+++ b/tests/complex/traci/pythonApi/bugs/ticket5029/output.complex
@@ -0,0 +1 @@
+ Retrying in 1 seconds
diff --git a/tests/complex/traci/pythonApi/bugs/ticket5029/runner.py b/tests/complex/traci/pythonApi/bugs/ticket5029/runner.py
new file mode 100644
index 00000000000..a9221d8b7f3
--- /dev/null
+++ b/tests/complex/traci/pythonApi/bugs/ticket5029/runner.py
@@ -0,0 +1,44 @@
+#!/usr/bin/env python
+# -*- coding: utf-8 -*-
+# Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
+# Copyright (C) 2008-2018 German Aerospace Center (DLR) and others.
+# This program and the accompanying materials
+# are made available under the terms of the Eclipse Public License v2.0
+# which accompanies this distribution, and is available at
+# http://www.eclipse.org/legal/epl-v20.html
+# SPDX-License-Identifier: EPL-2.0
+
+# @file runner.py
+# @author Mirko Barthauer (Technische Universitaet Braunschweig)
+# @date 2018-09-27
+# @version $Id$
+
+import os
+import sys
+
+SUMO_HOME = os.path.join(os.path.dirname(__file__), "..", "..", "..", "..", "..")
+sys.path.append(os.path.join(os.environ.get("SUMO_HOME", SUMO_HOME), "tools"))
+
+import traci # noqa
+import sumolib # noqa
+
+sumoBinary = sumolib.checkBinary('sumo')
+traci.start([sumoBinary,
+ "-n", "input_net.net.xml",
+ "-r", "input_routes.rou.xml",
+ "--no-step-log",
+ ])
+vehID = "v0"
+traci.vehicle.add(vehID, "r0")
+traci.vehicle.setLaneChangeMode(vehID, 0)
+for i in range(5):
+ traci.simulationStep()
+traci.vehicle.changeLaneRelative(vehID, 1,0)
+traci.simulationStep()
+traci.simulationStep()
+pos = traci.vehicle.getPosition(vehID)
+traci.vehicle.moveToXY(vehID, "", 0, pos[0], pos[1]-3.2)
+for i in range(5):
+ traci.simulationStep()
+
+traci.close()