~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/selftest/HTTPTestUtil.py

  • Committer: aaron.bentley at utoronto
  • Date: 2005-10-11 05:20:36 UTC
  • mfrom: (1442)
  • mto: (1185.25.1)
  • mto: This revision was merged to the branch mainline in revision 1460.
  • Revision ID: aaron.bentley@utoronto.ca-20051011052036-23ff7bae64a29826
latest from robert collins

Show diffs side-by-side

added added

removed removed

Lines of Context:
137
137
        self._http_thread = threading.Thread(target=self._http_start)
138
138
        self._http_thread.setDaemon(True)
139
139
        self._http_thread.start()
 
140
        self._http_proxy = os.environ.get("http_proxy")
 
141
        if self._http_proxy is not None:
 
142
            del os.environ["http_proxy"]
140
143
 
141
144
    def tearDown(self):
142
145
        self._http_running = False
143
146
        self._http_thread.join()
 
147
        if self._http_proxy is not None:
 
148
            import os
 
149
            os.environ["http_proxy"] = self._http_proxy
144
150
        TestCaseInTempDir.tearDown(self)
145
151