Commit Graph

14 Commits

Author SHA1 Message Date
Ryan McElroy
790efe918e duplicates: make test robust
Summary:
This test output is unstable. Let's make the test robust by ignoring
the shelve extension (which we will soon delete) and squelching the unrelated
output.

Test Plan: run-tests.py multiple times

Reviewers: ikostia, #mercurial

Reviewed By: ikostia

Differential Revision: https://phabricator.intern.facebook.com/D6683495

Signature: 6683495:1515513516:efd3964a0053b48d770b2af04b244295dba2d807
2018-01-09 08:18:14 -08:00
Jun Wu
4e168639bb test-duplicateoptions: ignore lz4revlog and hgsql
Summary:
lz4revlog and hgsql have external dependencies and loading them may have the
side effect printing "*** failed to import extension *". Therefore ignore
them to stabilize the test.

Test Plan:
Run the test on a machine that do not have lz4 or mysql.connector installed and
make sure it passes.

Reviewers: durham, #mercurial

Reviewed By: durham

Differential Revision: https://phabricator.intern.facebook.com/D6678526

Signature: 6678526:1515454289:ad50291d22889aafcec007c15ff2974dfe05cb13
2018-01-08 14:35:01 -08:00
Stanislau Hlebik
23dd2cf1eb remotenames: accept test failures 2018-01-03 06:28:53 -08:00
Augie Fackler
4c90eee735 tests: update duplicateoptions test to use bytestrings everywhere
Test now passes on Python 3.

Differential Revision: https://phab.mercurial-scm.org/D297
2017-07-25 22:53:44 -04:00
Martin von Zweigbergk
c3406ac3db cleanup: use set literals
We no longer support Python 2.6, so we can now use set literals.
2017-02-10 16:56:29 -08:00
Yuya Nishihara
1d44bd2bbb ui: factor out ui.load() to create a ui without loading configs (API)
This allows us to write doctests depending on a ui object, but not on global
configs.

ui.load() is a class method so we can do wsgiui.load(). All ui() calls but
for doctests are replaced with ui.load(). Some of them could be changed to
not load configs later.
2016-10-22 14:35:10 +09:00
Yuya Nishihara
0a1eaee3c0 test-duplicateoptions: alias ui as uimod 2016-04-05 23:17:05 +09:00
Robert Stanca
40e6626cfd py3: use print_function in test-duplicateoptions.py 2016-04-03 16:58:43 +03:00
Robert Stanca
fded95215a py3: use absolute_import in test-duplicateoptions.py 2016-04-03 16:56:15 +03:00
Matt Mackall
66c8bd54e8 extensions: remove the inotify extension (BC)
This extension has always had correctness issues and has been
unmaintained for years. It is now removed in favor of the third-party
hgwatchman which is maintained and appears to be correct.

Users with inotify enabled in their config files will fall back to
standard status performance.
2014-03-01 16:20:15 -06:00
Steven Stallion
d79ff306e5 plan9: initial support for plan 9 from bell labs
This patch contains support for Plan 9 from Bell Labs. A README is
provided in contrib/plan9 which describes the port in greater detail.
A new extension is also provided named factotum which permits the
factotum(4) authentication agent to provide credentials for HTTP
repositories. This extension is also applicable to other POSIX
platforms which make use of Plan 9 from User Space (aka plan9ports).
2012-04-08 12:43:41 -07:00
Simon Heimberg
1a9ba4e000 test: test for options duplicate with global options
issue2995 should not happen anymore
2011-09-14 17:06:33 +02:00
Mads Kiilerich
1b1811c0d4 tests: ignore inotify extension in test-duplicateoptions.py
The inotify extension is only available on linux and setup.py will not install
it on other platforms - but it will of course always be there in the source.

test-duplicateoptions.py tried to load most extensions (including inotify if
available). When the local uninstalled Mercurial was used it would thus always
load the inotify extension and cause a warning on unsupported platforms.

The inotify extension is not relevant for this test, so now we explicitly
ignore it.
2011-06-29 00:19:27 +02:00
Idan Kamara
09c86872e4 tests: add a test to check for duplicate command options 2011-05-27 17:51:16 +03:00