Dear maintainer,
With Santiago's suggestion considered, replacing the previous NMU with this one... I've prepared an NMU for bats (versioned as 0.4.0-1.1) and uploaded it to DELAYED/2. Please feel free to tell me if I should delay it longer. Regards.
diff -Nru bats-0.4.0/debian/changelog bats-0.4.0/debian/changelog --- bats-0.4.0/debian/changelog 2014-12-07 06:53:16.000000000 +0100 +++ bats-0.4.0/debian/changelog 2016-09-25 11:40:12.000000000 +0200 @@ -1,3 +1,11 @@ +bats (0.4.0-1.1) unstable; urgency=medium + + * Non-maintainer upload. + * Set TERM=dumb for tests to avoid FTBFS (Closes: #798296) and + Using dumb to keep the build reproducible. + + -- Tobias Frost <t...@debian.org> Sun, 25 Sep 2016 11:40:12 +0200 + bats (0.4.0-1) unstable; urgency=low * Initial release (Closes: #709135) diff -Nru bats-0.4.0/debian/rules bats-0.4.0/debian/rules --- bats-0.4.0/debian/rules 2014-12-07 06:53:16.000000000 +0100 +++ bats-0.4.0/debian/rules 2016-09-25 11:40:01.000000000 +0200 @@ -11,5 +11,5 @@ ./install.sh debian/bats/usr override_dh_auto_test: - bin/bats --tap test + TERM=dumb bin/bats --tap test