mirror of
https://github.com/facebook/sapling.git
synced 2024-10-08 07:49:11 +03:00
test-bdiff: move import inside the function to avoid test failure
test-check-module-imports.t fails on some systems where the path of home directories is different than sys.prefix and sys.exec_prefix. Importing silenttestrunner will help avoiding that failure.
This commit is contained in:
parent
4b315061e0
commit
6f863f0fc6
@ -3,8 +3,6 @@ import collections
|
||||
import struct
|
||||
import unittest
|
||||
|
||||
import silenttestrunner
|
||||
|
||||
from mercurial import (
|
||||
bdiff,
|
||||
mpatch,
|
||||
@ -148,4 +146,5 @@ class BdiffTests(unittest.TestCase):
|
||||
['a\n', diffreplace(2, 10, 'a\na\na\na\n', '')])
|
||||
|
||||
if __name__ == '__main__':
|
||||
import silenttestrunner
|
||||
silenttestrunner.main(__name__)
|
||||
|
Loading…
Reference in New Issue
Block a user