redjack/buzzy — pull request #10 by dcreager (2012-12-12 13:21:32+00:00)
Title: Hashing-related test failures in Python 3

When running the test suite under Python 3, I get quite a few errors along the lines of:

```
======================================================================
ERROR: test_url_file_env2 (buzzy.tests.env.TestEnvironments)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/dcreager/git/buzzy/build/lib/buzzy/tests/env.py", line 95, in test_url_file_env2
env2 = environment_for_url("file://" + os.path.join(envs_path, "env2"))
File "/home/dcreager/git/buzzy/build/lib/buzzy/env/filesystem.py", line 33, in environment_for_url
CACHED_ENVS[url] = handler(url, relative_to)
File "/home/dcreager/git/buzzy/build/lib/buzzy/env/filesystem.py", line 243, in __init__
(parsed.path, relative_to=relative_to)
File "/home/dcreager/git/buzzy/build/lib/buzzy/env/filesystem.py", line 121, in __init__
slug_hash = hashlib.sha1(self.base_path).hexdigest()
TypeError: Unicode-objects must be encoded before hashing
```