Show More
@@ -97,6 +97,15 b" if __name__ == '__main__':" | |||
|
97 | 97 | if sys.version_info[0] == 2: |
|
98 | 98 | fn = check_compat_py2 |
|
99 | 99 | else: |
|
100 | # check_compat_py3 will import every filename we specify as long as it | |
|
101 | # starts with one of a few prefixes. It does this by converting | |
|
102 | # specified filenames like 'mercurial/foo.py' to 'mercurial.foo' and | |
|
103 | # importing that. When running standalone (not as part of a test), this | |
|
104 | # means we actually import the installed versions, not the files we just | |
|
105 | # specified. When running as test-check-py3-compat.t, we technically | |
|
106 | # would import the correct paths, but it's cleaner to have both cases | |
|
107 | # use the same import logic. | |
|
108 | sys.path.insert(0, '.') | |
|
100 | 109 | fn = check_compat_py3 |
|
101 | 110 | |
|
102 | 111 | for f in sys.argv[1:]: |
General Comments 0
You need to be logged in to leave comments.
Login now