Index: tests/phpunit/tests/general/paginateLinks.php
===================================================================
--- tests/phpunit/tests/general/paginateLinks.php	(revision 29800)
+++ tests/phpunit/tests/general/paginateLinks.php	(working copy)
@@ -185,6 +185,10 @@
 	 * @ticket 29636
 	 */
 	function test_paginate_links_query_args() {
+		global $wp_rewrite;
+		$permalink_structure = $wp_rewrite->permalink_structure;
+		$wp_rewrite->set_permalink_structure( '' );
+
 		add_filter( 'get_pagenum_link', array( $this, 'add_query_arg' ) );
 		$links = paginate_links( array(
 			'current'  => 2,
@@ -215,5 +219,7 @@
 			$href = $tag->attributes->getNamedItem( 'href' )->value;
 			$this->assertEquals( $expected_href, $href );
 		}
+
+		$wp_rewrite->set_permalink_structure( $permalink_structure );
 	}
 }
