West Indian nightshade

Solanum ptychanthum

''Solanum ptychanthum'', West Indian nightshade or eastern black nightshade, is an annual or occasionally perennial plant in the Solanaceae family. It is typically 15–60 cm tall and many branched.

The leaves of eastern black nightshade are triangular to elliptic. The stems are circular, and sometimes slightly hairy. The flowers are small, white, and star-shaped, and they occur in small umbels of 5-7. The flowers ripen into glossy, black berries, each 10 mm in diameter and containing between 50 and 100 seeds. The ripened fruits have been shown to be not poisonous in low to moderate amounts, however the unripened berries are toxic. The berries are eaten and dispersed by birds.
Eastern Black Nightshade (Solanum ptychanthum) At the disturbed edge of a dense mixed forest. 
https://www.jungledragon.com/image/85223/eastern_black_nightshade_solanum_ptychanthum.html Fall,Geotagged,Solanum ptychanthum,United States

Habitat

Eastern black nightshade is native to North America. It grows in landscapes and mixed in among most crops. It is most likely to be found growing near crops of related species such as tomatoes and potatoes. It can grow on sandy and poor soil, but prefers fertile and cultivated soil types. Eastern black nightshade is found in all but the most Western U.S. states , as well as in the southern provinces of Canada from Alberta to the Maritimes. It is introduced in Alaska, Hawaii, and the Virgin Islands.

References:

Some text fragments are auto parsed from Wikipedia.

Taxonomy
KingdomPlantae
DivisionAngiosperms
ClassEudicots
OrderSolanales
FamilySolanaceae
GenusSolanum
SpeciesS. ptychanthum