I'd go with euphorbia as well. My lathyrus vernus has pea like pods for seeds, and different leaf habit. As with all euphorbias, the stems can exude a milky sap which can cause a nasty skin reaction in some people, so handle with care and stout gloves.