Show More
@@ -1,6 +1,9 | |||||
1 | import doctest, tempfile, os, sys |
|
1 | import doctest, tempfile, os, sys | |
2 |
|
2 | |||
3 | if __name__ == "__main__": |
|
3 | if __name__ == "__main__": | |
|
4 | if 'TERM' in os.environ: | |||
|
5 | del os.environ['TERM'] | |||
|
6 | ||||
4 | fd, name = tempfile.mkstemp(suffix='hg-tst') |
|
7 | fd, name = tempfile.mkstemp(suffix='hg-tst') | |
5 |
|
8 | |||
6 | try: |
|
9 | try: |
@@ -1,4 +1,4 | |||||
1 |
import |
|
1 | import os | |
2 |
|
2 | |||
3 | def check(a, b): |
|
3 | def check(a, b): | |
4 | if a != b: |
|
4 | if a != b: | |
@@ -232,4 +232,7 def test_url(): | |||||
232 | 'foo/bar/baz' |
|
232 | 'foo/bar/baz' | |
233 | """ |
|
233 | """ | |
234 |
|
234 | |||
|
235 | if 'TERM' in os.environ: | |||
|
236 | del os.environ['TERM'] | |||
|
237 | ||||
235 | doctest.testmod(optionflags=doctest.NORMALIZE_WHITESPACE) |
|
238 | doctest.testmod(optionflags=doctest.NORMALIZE_WHITESPACE) |
General Comments 0
You need to be logged in to leave comments.
Login now