Skip to content

Commit

Permalink
Fix a bug where pyamf would be imported prematurely, before building …
Browse files Browse the repository at this point in the history
…the c-extensions which would break the tests on the first run.

git-svn-id: https://svn.pyamf.org/branches/cpyamf-amf0-772@3353 2dde4cc4-cf3c-0410-b1a3-a9b8ff274da5
  • Loading branch information
njoyce committed Jul 27, 2010
1 parent 6afa0cc commit 6700668
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@

readme = os.path.join(base_path, 'README.txt')

# need to remove all references to imported pyamf modules, as building
# the c extensions change pyamf.util.BufferedByteStream, which blow up
# the tests
for k, v in sys.modules.copy().iteritems():
if k and k.startswith('pyamf'):
del sys.modules[k]


class TestCommand(test.test):
"""
Expand Down

0 comments on commit 6700668

Please sign in to comment.