Let $f:[a,b]\to\mathbb{R}$ be a function, and $P_n$ the equidistance partition of $[a,b]$ into $n$ subintervals of an equal length. Let $P_n^\ast$ be the set of sample points from each subinterval of $P_n$, and $S(f,P_n,P_n^\ast)$ the Riemann sum of $f$ constructed using $P_n$ and $P_n^\ast$. In Stewart's calculus book, the (Riemann) integrability of $f$ is defined as follows:
There exists a real number $L$ such that, for any $\epsilon>0$, there exists $N\in\mathbb{Z}$ such that if $n\geq N$, then $$\left|S(f,P_n,P_n^\ast)-L\right|<\epsilon$$ for any choice of $P_n^\ast$.
Note that this condition is stronger than the following condition:
There exists a real number $L$ such that the sequence $\{S(f,P_n,P_n^\ast)\}$ of Riemann sums converges to $L$ for any choice of the sequence $\{P_n^\ast\}$.
Presumably the latter condition is not sufficient to guarantee the (Riemann) integrability of $f$. Does anyone know an example of a non-integrable function satisfying the latter condition?