view tests/test-bad-pull.t @ 45180:a6fde9d789d9

phases: move short-lived PyObject pointers to local scope It helps understand which object should be decrefed on goto release.
author Yuya Nishihara <yuya@tcha.org>
date Sat, 18 Jul 2020 18:38:46 +0900
parents 5abc47d4ca6b
children ebee234d952a
line wrap: on
line source

#require serve

  $ hg clone http://localhost:$HGPORT/ copy
  abort: * (glob)
  [255]

  $ test -d copy
  [1]

  $ "$PYTHON" "$TESTDIR/dumbhttp.py" -p $HGPORT --pid dumb.pid
  $ cat dumb.pid >> $DAEMON_PIDS
  $ hg clone http://localhost:$HGPORT/foo copy2
  abort: HTTP Error 404: * (glob)
  [255]
  $ killdaemons.py