The paper provides a nonparametric test for the identity of two continuous univariate distribution functions when observations are drawn in pairs from the populations, by adopting a sampling scheme which, using Mann-Whitney scores, generalizes the existing inverse binomial sampling technique. Some exact performance characteristics of the proposed test are formulated and compared numerically with existing competitors of the proposed test. The applicability of the proposed test is illustrated using real-life data.